this.$options.methods.b();//
b方法中 this underfine
//方法一
this.$options.methods.b(this);
b(e){
console.log(e.data)
}
//方法二
//或者
this.$options.methods.b.bind(this)();
b(){
console.log(this.data)
}
转载于:https://www.cnblogs.com/kevinmajesty/p/10648053.html