页面滚动到顶部

//滚动到顶部
function initScrollToTop(){
$("html,body").animate({scrollTop: 0},1000);
}
原文地址:https://www.cnblogs.com/baixuemin/p/6485269.html