【vue】methods里a调用b,this undefined 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) }