hejialianghe / Senior-FrontEnd

🔥 🔥🔥 🔥🔥 高级开发工程师必备,打通全栈任督二脉,文档地址gitee版(Senior development engineers must understand the web body of knowledge, document addresses):https://js.youliaowu.com

Home Page:https://js.youliaowu.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

这个..args少打了一个点吧

Detco opened this issue · comments

commented

2.7.1节流函数这里

 let deBounce = function (fn,delay){
          let timer=null
          return function (..args) {
            if(timer) clearTimeout(timer)
            timer = setTimeout(()=>{
              fn(..args)
            },delay)
          }
        }
commented

好吧,这个args没啥用