摘要:
http://www.alloyteam.com/2012/11/javascript-throttle/1. 必须用context传递this,否则setTimeout中this为window对象 function fn(){} var throttle=functio... 阅读全文
posted @ 2015-08-04 22:07
simple_ac
阅读(117)
评论(0)
推荐(0)
摘要:
1.call要逐个传入参数2apply方法的必须 function curry(fn) { var args=Array.prototype.slice.call(arguments,1); return function() { ... 阅读全文
posted @ 2015-08-04 08:46
simple_ac
阅读(117)
评论(0)
推荐(0)
浙公网安备 33010602011771号