问题

由于在 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