js监测滚动条到达最底边

scroll : function(){
$(window).scroll(function () {
var scrollTop = $(this).scrollTop();
var scrollHeight = $(document).height();
var windowHeight = $(this).height();
if (scrollTop + windowHeight == scrollHeight) {
self.pageSize();
}
});
},

posted @ 2017-04-13 11:56  smght  阅读(287)  评论(0编辑  收藏  举报