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);
渐渐滚动到
最新推荐文章于 2024-06-17 14:36:58 发布