Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Detco opened this issue Apr 26, 2022 · 1 comment
Open

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

Detco opened this issue Apr 26, 2022 · 1 comment

Comments

@Detco
Copy link

Detco commented Apr 26, 2022

2.7.1节流函数这里

 let deBounce = function (fn,delay){
          let timer=null
          return function (..args) {
            if(timer) clearTimeout(timer)
            timer = setTimeout(()=>{
              fn(..args)
            },delay)
          }
        }
@Detco
Copy link
Author

Detco commented Apr 26, 2022

好吧,这个args没啥用

hejialianghe pushed a commit that referenced this issue Apr 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant