timer = setInterval(function() {
if (document.documentElement.scrollTop <= 0) {
clearInterval(timer);
}
window.scrollTo(0, document.documentElement.scrollTop - 100)
}, 16.5)
定时器函数,没秒回100高度
timer = setInterval(function() {
if (document.documentElement.scrollTop <= 0) {
clearInterval(timer);
}
window.scrollTo(0, document.documentElement.scrollTop - 100)
}, 16.5)
定时器函数,没秒回100高度