标签:调用 fun var function http this OLE func tps
https://segmentfault.com/q/1010000008856410
var num=1;
var myObject ={
num :2,
add:function(){
this.num=3;
(function(){
console.log(this);
this.num=4;
})();
console.log(this);
},
sub:function(){
console.log(this.num);
}
}
myObject.add();
console.log(myObject.num);
console.log(num);
var sub = myObject.sub;
sub();
自运行函数其实是window对象调用它
https://segmentfault.com/q/1010000004648772
标签:调用 fun var function http this OLE func tps
原文地址:https://www.cnblogs.com/lctstruggle/p/9158064.html