🔥 🔥🔥 🔥🔥 高级开发工程师必备,打通全栈任督二脉,文档地址gitee版(Senior development engineers must understand the web body of knowledge, document addresses):https://js.youliaowu.com
let deBounce = function (fn,delay){
let timer=null
return function (..args) {
if(timer) clearTimeout(timer)
timer = setTimeout(()=>{
fn(..args)
},delay)
}
}