this.name的this不是object.
而是最终找到了window
【 在 hennywei (hen) 的大作中提到: 】
var name = "The Window";
var object = {
name : "My Object",
getNameFunc : function(){
return function(){
return this.name;
};
}
};
alert(object.getNameFunc()()); //The Window
为什么输出是The Window呢
--
FROM 202.106.180.*