Skip to content

Instantly share code, notes, and snippets.

@think2011
Created Jan 14, 2015
Embed
What would you like to do?
允许二次bind的bind函数
Function.prototype.bind = function (fn) {
var ret = function () {
return ret._fn.apply(fn);
}
ret.fn = this._fn || this;
return ret;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment