var name = "The Window"; var object = { name: "My Object", getNameFunc: function () { return function () { return this.name; }; } }; // 实际调用最里层匿名函数的是window alert(object.getNameFunc()());