Files
littleTiger/template/mobile/rainbow/static/js/sourch_submit.js
2019-02-28 19:48:21 +08:00

11 lines
356 B
JavaScript

//滚动加载更多
$(window).scroll(
function() {
var scrollTop = parseInt($(this).scrollTop());
var scrollHeight = parseInt($(document).height());
var windowHeight = parseInt($(this).height());
if (scrollTop + windowHeight >= scrollHeight-60) {
ajax_sourch_submit();//调用加载更多
}
}
);