手机网页上拉加载内容
$(window).scroll(function() {
var scrollTop = $(this).scrollTop();
var scrollHeight = $(document).height();
var windowHeight = $(this).height();
var positionValue = (scrollTop + windowHeight) - scrollHeight;
if (positionValue >= 0) {
//执行ajax,获取数据
}
});
posted on 2016-07-21 11:52 jasonduanmu 阅读(822) 评论(0) 收藏 举报
浙公网安备 33010602011771号