摘要: ``` throttle(fn, delay) { let t = true return function () { if (t) { setTimeout(() => { fn.call(this) t = true }, delay) } t = false; } } ``` 阅读全文
posted @ 2023-07-20 09:37 vaen 阅读(14) 评论(0) 推荐(0)