Function.prototype.callまたはFunction.prototype.applyは1つの引数で何をしますか?Function.prototype.callとFunction.prototype.applyの引数が1つだけの場合
ここでは何が起こっていますか?
Function.prototype.myBind = function (context) {
var fun = this;
return function(){
return fun.call(context);
}
}
それはどのように "context.fun()" とは異なるのですか? –
@WylliamJudd: 'context.fun'は存在しません。 'fun'は変数であり、プロパティ名ではありません。 – SLaks