{volist name=":getArray(fun('Sort@son',intval(16),'cms')?:fun('Sort@brother',16),'cms')" id="name"} <li {eq name="$key" value="$fid"}class='ck'{/eq}><a href="{:url('cms/content/index',['id'=>$key])}">{$name}</a></li> <div class="cmslanmu" data-id="{$key}"><!--这里进行关联--> </div> {/volist} <div style="display:none;"> <!--这里进行隐藏然后JQ进行赋值--> {qb:tag name="cmslanmu" type="cms" union="fid" rows="3" js="xx01"} |--|--:{$rs.title}<br> {/qb:tag} </div> <script type="text/javascript"> $(".cmslanmu").each(function(){ var that = $(this); var fid = $(this).data('id'); var page = 1; var url = "{qb:url name='cmslanmu'}" + page + "&fid=" + fid; $.get(url,function(res){ if(res.code==0){ if(res.data!=''){ that.html(res.data); } } }); }); </script>