当用户滚动到页面底部时,我使用Jquery Ajax将更多内容加载到我的页面,如下所示:
$(window).scroll(function(){
if($(window).scrollTop() == $(document).height() - $(window).height()){
$.ajax({
url: /* my url goes here */,
cache: true,
success: function(html){ /*append html to the bottom of page*/ }