<script language="JavaScript">
function expand(el) {
childobj = document.getElementById("child" + el);
if (childobj.style.display == 'none'){
childobj.style.display = 'block';
}else {
childobj.style.display ='none';
}
return;
}
</script>
< div>
<foreach name="auth_infoA" item="v">
<table>
<tr>
<td>
<a onclick="expand('{$ v.auth_id}')" href="javascript:void(0);">{$v.auth_name}</a>
</td>
</tr>
</ table>
<table id="child{$v.auth_id}" style="display: none">
<foreach name="auth_infoB" item="vv">
<if-Bedingung =" $vv.auth_pid heq $v.auth_id ">
<tr>
<td>
<a href=" " target="right"> ;{$vv.auth_name}< /a>
</td>
</tr>
</if>
</foreach>
</table>
</foreach>
</ div> (<a href=" " target="right" >{$vv.auth_name}</a>),们帮帮忙.谢谢了
这是问题的图片
点击左侧菜单的角色管理跳转到右侧显示,具体连接不知道该怎么放,求大神们指点指点
<td>
<a href=" " target="right">{$vv.auth_name}</a>
</td>
<a href="{:U('Index/index')}" target="right">{$vv.auth_name}</a>
你是要这样的吗? Index是文件名(类名),index是方法名