11 lines
356 B
JavaScript
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();//调用加载更多
|
|
}
|
|
}
|
|
); |