varx=10;varfoo={x:20,bar:function(){varx=30;console.log(this.x);}};console.log(foo.bar());console.log((foo.bar)());这两个输出怎么解释?
varfoo={x:20,bar:function(){varx=30;console.log(this.x);}};console.log(foo.bar());console.log((foo.bar)());这两个输出怎么解释?
x:20,bar:function(){varx=30;console.log(this.x);}};console.log(foo.bar());console.log((foo.bar)());这两个输出怎么解释?
bar:function(){varx=30;console.log(this.x);}};console.log(foo.bar());console.log((foo.bar)());这两个输出怎么解释?
varx=30;console.log(this.x);}};console.log(foo.bar());console.log((foo.bar)());这两个输出怎么解释?
console.log(this.x);}};console.log(foo.bar());console.log((foo.bar)());这两个输出怎么解释?
}};console.log(foo.bar());console.log((foo.bar)());这两个输出怎么解释?
};console.log(foo.bar());console.log((foo.bar)());这两个输出怎么解释?
console.log(foo.bar());console.log((foo.bar)());这两个输出怎么解释?
console.log((foo.bar)());这两个输出怎么解释?
这两个输出怎么解释?
相关分类