节流和防抖

函数防抖(debounce)

在事件被触发n秒内再执行回调,如果在n秒内又被触发,则重新计时。

Last updated

Was this helpful?