function f1(){
'use strict';
console.log(this);
}
function f2(){
//'use strict';
console.log(this);
}
f1();//undefind
f2();//window
![](https://img.haomeiwen.com/i9628812/33255ff3035fce76.png)
function f1(){
'use strict';
console.log(this);
}
function f2(){
//'use strict';
console.log(this);
}
f1();//undefind
f2();//window
本文标题:js:严格模式下的this指向
本文链接:https://www.haomeiwen.com/subject/jjdgzftx.html
网友评论