节流函数

标准写法:
image.png
更简写法(少一个变量)
image.png
参数传递:
image.png
防抖函数
image.png