var top = document.documentElement.scrollTop + document.body.scrollTop;
document.documentElement.scrollTop = 3000;
$('body,html').animate({scrollTop:3000},2000); //滚动条的动画
var top = document.documentElement.scrollTop + document.body.scrollTop;
document.documentElement.scrollTop = 3000;
$('body,html').animate({scrollTop:3000},2000); //滚动条的动画
转载于:https://www.cnblogs.com/loveMis/p/9240187.html