滚动加载数据

var rows = 15;
$(window).scroll(function(){
var scrollTop = $(this).scrollTop();
   var scrollHeight = $(document).height();
   var windowHeight = $(this).height();
   if(scrollTop + windowHeight == scrollHeight){
     rows += 5;
     searchAll();
   }
});

posted @ 2018-01-26 10:01  Monroe_Yu  阅读(104)  评论(0编辑  收藏  举报