scroll loading guang info
Showing
1 changed file
with
3 additions
and
1 deletions
@@ -41,7 +41,9 @@ if ($tag.length > 0) { | @@ -41,7 +41,9 @@ if ($tag.length > 0) { | ||
41 | } | 41 | } |
42 | 42 | ||
43 | $(document).scroll(function() { | 43 | $(document).scroll(function() { |
44 | - if ($(window).scrollTop() + winH >= $(document).height() - loadMoreH) { | 44 | + |
45 | + //设置50px阈值 | ||
46 | + if ($(window).scrollTop() + winH >= $(document).height() - loadMoreH - 50) { | ||
45 | loadMore($infos, setting); | 47 | loadMore($infos, setting); |
46 | } | 48 | } |
47 | }); | 49 | }); |
-
Please register or login to post a comment