摘要: 防抖: 将函数在规定时间内多次触发整合为一次,基本原理就是 delay 时间内再次触发则 重新计时,计时满delay则执行函数 function debounce(fn, delay) { let time = null; return function () { if (time) { clear 阅读全文
posted @ 2021-06-01 11:30 淮生 阅读(46) 评论(0) 推荐(0) 编辑