摘要:
http://www.alloyteam.com/2012/11/javascript-throttle/1. 必须用context传递this,否则setTimeout中this为window对象 function fn(){} var throttle=functio... 阅读全文
摘要:
1.call要逐个传入参数2apply方法的必须 function curry(fn) { var args=Array.prototype.slice.call(arguments,1); return function() { ... 阅读全文