没有使用防抖:
使用防抖(debounce):
使用节流(throttle):
打开浏览器的DevTools查看效果