防抖(debounce)vs 节流(throttle)可视化
等待时间 wait:
500
ms
防抖:停止触发后等 wait 才执行
点我 / 狂点
日志:
节流:每 wait 最多执行一次
点我 / 狂点
日志:
清空日志