信 用 承 诺
; var perPage = 5; var view = ""; //处理列表信息 for(var i=0;i=3){ view += ""; view += ""; view += ""; } } } if(initData.length==perPage){ view += ""; }else{ view += ""; } view += "
"+showData[1]+""+showData[2]+"
   "+showData[4]+"
加载更多
没有更多
"; $('#pagetest2').append(view); //左侧文章加载更多 $(".ajaxMore").on('click', function () { var currentPage = $(this).attr('currentPage'); if (currentPage == undefined) { $(this).attr('currentPage', 1); currentPage = 1; } else { $(this).attr('currentPage', parseInt(currentPage) + 1); } var more = $(this); if($(this).text()!='没有更多'){ $.ajax({ dataType : 'json', async:true, url: 'http://fgw.changsha.gov.cn/xycs/creditcs/data/genData.do?searchId=A8C0999C48699035¤tPage='+currentPage+'&perPage='+perPage, success: function (result) { initData2 =eval(result.data); var view2=""; if(initData2!=""){ for(var i=0;i=3){ view2 += ""+showData[1]+""+showData[2]+""; view2 += "   "+showData[4]+""; view2 += ""; } } } if(initData2.length!=perPage) more.text('没有更多'); }else{ more.text('没有更多'); } document.getElementById('loading').insertAdjacentHTML('beforebegin',view2); //$('#pagetest2').append(view2); }, error: function (error) { alert('加载失败'); } }); } })