摘要:
Function.prototype.before = function (func){ var self = this; return function (){ if(func.apply(this, arguments) === false){ r... 阅读全文
posted @ 2014-11-18 11:05
风之优雅z
阅读(190)
评论(0)
推荐(0)
|
摘要:
Function.prototype.before = function (func){ var self = this; return function (){ if(func.apply(this, arguments) === false){ r... 阅读全文
posted @ 2014-11-18 11:05
风之优雅z
阅读(190)
评论(0)
推荐(0)
摘要:
throttle 函数:window.addEventListener("resize", throttle(callback, 300, {leading:false})); window.addEventListener("resize", callback2); function call... 阅读全文
posted @ 2014-11-18 10:36
风之优雅z
阅读(261)
评论(0)
推荐(0)
|