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));
經典前端面試題,難倒不少人,哪位大神幫我解釋下后面call的答案啊
慕娘9325324
2018-08-03 09:33:33