当有竖向滚动轴时,返回页面顶部

document.body.scrollTop = document.documentElement.scrollTop = 0;

猜你喜欢

转载自www.cnblogs.com/llmatch/p/9299623.html