循环读取出来的栏目怎么 读取出内容呢?
官方给的
<div class="pc_qun"> {qb:tag name="pc_index_showquntest1" type="qun" rows="6" order="view" by="desc"} <h2>圈子名称: <a href="{$rs.url}" target="_blank">{$rs.title}</a></h2> <div class="listbbs" data-id="{$rs.id}" style="boder:1px solid #ccc;margin:10px;"></div> {/qb:tag} </div> <div class="list_label_bbs" style="display:none;"> {qb:tag name="label_listbbs" type="bbs" union="ext_id" rows="6"order="id" by="desc"} <a href="{$rs.url}" target="_blank">{$rs.title}</a><br> {/qb:tag} </div> <script type="text/javascript"> $(document).ready(function () { $(".pc_qun .listbbs").each(function(){ show_qun_bbs($(this)); }); }); function show_qun_bbs(that){ var page = 1; var id = that.data("id"); $.get("{qb:url name='label_listbbs' /}" + page + "&ext_id="+id , function(res){ if(res.code==0){ that.html(res.data); } }); } </script>
这个是要jq吧!不适合靠seo做网站的吧