87,994
社区成员
发帖
与我相关
我的任务
分享
Function.prototype.myCall = function () {
var _this = arguments[0];
_this.__temp__ = this;
var returnValue = _this.__temp__();
delete _this.__temp__;
return returnValue;
}
这个可以基本的模拟call()方法的功能,但是真正的call()方法肯定不是这样