如何判断页面滚动到了底部(JQuery)

1  console.log("documentHeight---"+$(document).height());
2  console.log("windowheight---"+$(window).height());
3  console.log("scrolltop----"+$(document).scrollTop());

当  $(document).height() == $(document).scrollTop() + $(window).height() 时,页面滚动到了底部;

posted on 2017-12-22 14:44  huozaimengli  阅读(356)  评论(0编辑  收藏  举报

导航