methods: {
a() {
let that=this;
if(1==1)
{
this.b();
}
},
b() {
}
}
用一个that代替this
methods: {
a() {
let that=this;
if(1==1)
{
this.b();
}
},
b() {
}
}
用一个that代替this