var a=11function test1(){ this.a=22; let b=function(){ console.log(this.a);
};
b();
}var x=new test1(); //11這個函數我的理解是,this不是指向調用環境中值嗎。所以b函數應該在test1里調用,應該是22才對啊...請問是什么問題
this指向的問題
慕俠2389804
2018-10-24 19:51:22