document.documentElement.scrollTop = window.innerHeight
//渐渐地滚动到
// let timer = null,
// speed = 30,
// currentPosition = 0;
// timer = setInterval(() => {
// currentPosition =
// document.documentElement.scrollTop ?? document.body.scrollTop;
// if (currentPosition > window.innerHeight) {
// clearInterval(timer);
// } else {
// window.scrollTo(0, currentPosition + speed);
// }
// }, 5);
07-05
1304
07-18
207
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交