Vue.js报错问题解决:[Vue warn]: Error in v-on handler: “ReferenceError: XXX is not defined“.
代码:计算按钮被单击{{count}}次varvm=newVue({el:'#box',data:{count:0},methods:{counter:function(){count++;}}})报错信息:原因:count忘加this了。。。计算按钮被单击{{count}}次varvm=newVue({el:'#box',data:{count:0},methods:{counter:funct