var myobject ={
foo:"bar",
func:function(){
var self = this;
console.log("outer func : this.foo=" + this.foo);
console.log("outer func : self.foo=" + self.foo);
(
function(){
console.log("outer func : this.foo=" +this.foo);
console.log("outer func : self.foo=" +self.foo);
}
)();
}
}
添加回答
举报
0/150
提交
取消