小白求解答,大量this.后报错

 

this指向问题吧,如果是在箭头函数里调用this就需要用个变量接收一下,你把这个注释打印一下this看看

let _this=this;
a=()=>{
 
}.then(res=>{
 _this.aa() 
})
_this.aa... //这样

//或者用call,bind,apply改变this指向

 

this指向不对?