var name = "The Window";var object = { name : "My Object", getNameFunc : function(){ alert('1.' + this.name); return function(){ return this.name; }; }};var func = object.getNameFunc();alert('2.' + func()); alert('3.' + func.call(object));alert('4.' + func.apply(object));
添加回答
举报
0/150
提交
取消