PHP中文网2017-04-10 15:16:37
移动端下拉刷新、上拉加载更多插件
如果要指定高度就scroll事件:
(window).scroll(function() {
var scrollTop = $(this).scrollTop(),scrollHeight = $(document).height(),windowHeight = $(this).height();
var positionValue = (scrollTop + windowHeight) - scrollHeight;
if (positionValue == 0) {
//do something
}
}
});