防抖(debounce)和节流(throttle)都是性能优化的一种手段
debounce:持续触发(事件)不执行,不触发的一段时间后才执行
throttle:持续触发(事件)也执行,只不过执行的频率变低了