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