var timer
window.addEventListener('scroll', function () {
if ("正在运行") {
return
}
if (timer) {
clearTimeout(timer)
}
timeoutId = setTimeout(要执行的方法名, 50)
}.bind(this), false);
js节流

最新推荐文章于 2023-04-04 19:14:55 发布