手机网页上拉加载内容
$(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 阅读(820) 评论(0) 编辑 收藏 举报