-
Notifications
You must be signed in to change notification settings - Fork 0
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
手写防抖和节流 #10
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
防抖和节流
防抖是持续触发事件时,一定时间段内没有再触发事件,事件处理函数才会执行一次,如果设定的时间到来之前,又一次触发了事件,就重新开始延时。节流是指当持续触发事件时,保证一定时间段内只调用一次事件处理函数.
防抖
防抖要考虑是有:
this
指向节流
The text was updated successfully, but these errors were encountered: