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