摘要:
这些东西其实早几年就有人讨论了吧,没关系我写给自己看的。http://ejohn.org/apps/learn/#2// The .bind method from Prototype.js Function.prototype.bind = function(){ var fn = this, args = Array.prototype.slice.call(arguments), object = args.shift(); return function(){ return fn.apply(object, args.concat(Array.prototy... 阅读全文