聯(lián)系官方銷售客服
1835022288
028-61286886
模板標(biāo)簽里面
已經(jīng)顯示完了 提示
<div class="n-title"> <div class="bt_wz"> <h2><span>{$top['name']}</span></h2> <h3></h3> </div> </div> <div class="navs"> <ul> {loop $related $t} <li class="{if $t.id==$cat.id}current{else}{/if}" > <a href="{$t['url']}">{$t.name}</a></li> {/loop} </ul> </div> <div class="news"> <ul class="news_list" id="content_list"> {template "list_data.html"} </ul> </div> <div class="margin-top-20" id="is_ajax_btn"> <br> <a href="javascript:dr_ajax_load_more();" class="btn default btn-block"> 加載更多 </a> <br> </div> <script> var Mpage=1; //滾動(dòng)顯示更多 var scroll_get = true; //做個(gè)標(biāo)志,不要反反復(fù)復(fù)的加載 $(document).ready(function () { $(window).scroll(function () { if (scroll_get==true && (400 + $(window).scrollTop())>($(document).height() - $(window).height())) { scroll_get = false; layer.msg('內(nèi)容加截中,請(qǐng)稍候',{time:1000}); dr_ajax_load_more(); } }); }); function dr_ajax_load_more(){ Mpage++; $.get('/index.php?s=api&c=api&m=template&name=list_data.html&module={MOD_DIR}&catid={$catid}&format=json&page='+Mpage+'&'+Math.random(),function(res){ $('.margin-top-20').hide(); if(res.code==1){ if(res.msg==''){ layer.msg("已經(jīng)顯示完了",{time:500}); }else{ $('#content_list').append(res.msg); scroll_get = true; } }else{ layer.msg(res.msg,{time:2500}); } }, 'json'); } </script>
數(shù)據(jù)有多少?
回復(fù)@唯一 20多條, 下滑同時(shí)數(shù)據(jù)自動(dòng)加載,但是到底 一直還是 提示
就不提示