下一页数据(注意:page是从2开始返回) $.get('/Home/product/ajax/id/19.html?p=&aid=42.html&min=&max=&low=&high=&page='+page, function(res){ //假设你的列表返回在data集合中 layui.each(res.data, function(index, item){ $moreimg='';$good=''; if(item.img.length){ $moreimg='多图'; } if(item.article_display==1){ $good='顶!' } lis.push('
  • '+item.article_title+' '+$good+' '+$moreimg+'

    '+item.Paddr.address_name+item.addr.address_name+''+item.type.type_name+'

    适合经营:'+item.article_label+'

    07-18

    '+item.article_max1+'平米

    转让费: '+item.article_max4+'

    '+item.article_max2+'元/月

  • '); }); //执行下一页渲染,第二参数为:满足“加载更多”的条件,即后面仍有分页 //pages为Ajax返回的总页数,只有当前页小于总页数的情况下,才会继续出现加载更多 next(lis.join(''), page < res.pages); }); } }); });