摘要: 防抖 function throttle(fun, time) { let timer = null return () => { if (timer) { return } fun() timer = setTimeout(() => { timer = null }, time) } } 节流 阅读全文
posted @ 2022-08-22 11:15 努力挣钱的小鑫 阅读(34) 评论(0) 推荐(0) 编辑