How to scroll the window using JQuery $.scrollTo() function

$('html, body').animate({scrollTop: $("#page").offset().top}, 2000);

http://stackoverflow.com/questions/832860/

//鼠标滚动时, 阻止页面滚动方法
$(document).on('mousewheel DOMMouseScroll', function(){
    $('html, body').stop(true);
});

  

原文地址:https://www.cnblogs.com/zlog/p/5387881.html