2010-11-01 02:47

[JavaScript] Function.prototype.bind

Function.prototype.bind = function(target){
    var func=this;
    return function(){
        arguments.unshift(this);
        func.apply(target, arguments);
    };
};

參考來源:
Function.prototype.bind
FLASH - Can I extend Function's prototype in ActionScript?

0 回應: