0
点赞
收藏
分享

微信扫一扫

properties starting with “$“,“_“ are not proxied in the Vue instance to prevent conflicts

40dba2f2a596 2022-08-18 阅读 26


问题

由于在 data 里面写了带 ​​_​​ 的变量

properties starting with “$“,“_“ are not proxied in the Vue instance to prevent conflicts_vue.js


然后就报错了:

properties starting with “$“,“_“ are not proxied in the Vue instance to prevent conflicts_vue.js_02

解决

不要写这种前面带 ​​_​​​ 的,文档上面有说明,请参考​​【https://cn.vuejs.org/v2/api/#data】​​

properties starting with “$“,“_“ are not proxied in the Vue instance to prevent conflicts_vue.js_03


举报

相关推荐

0 条评论