JS JQUERY实现滚动条自动滚到底的方法

$(function(){

  var h = $(document).height()-$(window).height();

  $(document).scrollTop(h);

});

window.onload = function(){

  var h = document.documentElement.scrollHeight || document.body.scrollHeight;

  window.scrollTo(h,h);

}

原文地址:https://www.cnblogs.com/tongzhou/p/6929061.html