示例代码如下 //无动画滚动 window.scroll(0, 0) //动画滚动, 100是速度相关的值, 越大越慢 $("html,body").animate({ scrollTop: 0 }, 100);