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

防抖&截流 #25

Open
shenqistart opened this issue Mar 3, 2021 · 0 comments
Open

防抖&截流 #25

shenqistart opened this issue Mar 3, 2021 · 0 comments

Comments

@shenqistart
Copy link
Owner

shenqistart commented Mar 3, 2021

debounce:多个信号合并为一个信号,它在用户不触发事件的时,才触发动作,并且抑制了本来在事件中要执行的动作

throttle:你建了水坝在河道中,不能让水流动不了,你只能让水流慢些。于是你让它在一定的时间就进行一下,不是在输入的时候就一直都不执行
使用start,cur,确认返回的函数才是真正使用的函数

https://zhuanlan.zhihu.com/p/38313717

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