[Vue warn]: Method "msg" has already been defined as a data property.
[Vue warn]: Error in mounted hook: "TypeError: this.msg is not a function"
TypeError: this.msg is not a function ……
原因:
在 Vue 中:computed(计算属性);data;props 都会被挂在在 vm 实例上,因此不能同名。
Vue报错:Method "msg" has already been defined as a data property./this.msg is not a function……
Vue 报错信息:[Vue warn]: Method "msg" has already been defined as a data property.[Vue warn]: Error in mounted hook: "TypeError: this.msg is not a function"TypeError: this.msg is not a function ……原因...