JS JQUERY实现滚动条自动滚到底的方法
时间:2017-06-01 15:44:16
收藏:0
阅读:285
$(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);
}
原文:http://www.cnblogs.com/tongzhou/p/6929061.html
评论(0)