...
|
...
|
@@ -21,9 +21,11 @@ function massageAJAX(page) { |
|
|
},
|
|
|
dataType: 'html',
|
|
|
success: function(data) {
|
|
|
stopLoading = false;
|
|
|
|
|
|
if (data === '') {
|
|
|
stopLoading = true;
|
|
|
tip.show('没有更多了');
|
|
|
tip.show('没有更多内容了');
|
|
|
}
|
|
|
|
|
|
$('.collocation-list').append(data);
|
...
|
...
|
@@ -37,6 +39,7 @@ function massageAJAX(page) { |
|
|
|
|
|
function scrollHandler() {
|
|
|
if (!stopLoading && ($(window).scrollTop() + $(window).height() > $('body').height() - 100)) {
|
|
|
stopLoading = true;
|
|
|
page++;
|
|
|
massageAJAX(page);
|
|
|
}
|
...
|
...
|
|