摘要:
Function.prototype.before = function (func){ var self = this; return function (){ if(func.apply(this, arguments) === false){ r... 阅读全文
摘要:
Function.prototype.before = function (func){ var self = this; return function (){ if(func.apply(this, arguments) === false){ r... 阅读全文
摘要:
throttle 函数:window.addEventListener("resize", throttle(callback, 300, {leading:false})); window.addEventListener("resize", callback2); function call... 阅读全文
|