<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 condition=" $vv.auth_pid heq $v.auth_id ">
<tr>
<td>
<a href=" " target="right">{$vv.auth_name}</a>
</td>
</tr>
</if>
</foreach>
</table>
</foreach>
</div>
用的是tp3.2.3来做的,这是前端代码,我想跳转到right,但是我不知道那个路劲怎么去写他(<a href=" " target="right">{$vv.auth_name}</a>),大神们可以模拟一个给我么,刚刚学,还是有太多的不懂,可以的话,麻烦你们帮帮忙。谢谢了
This is the picture of the problem
Click the role management on the left menu to jump to the right display. I don’t know the specific link. How to put it, please give me some advice
</td>
<a href="{:U('Index/index')}" target="right">{$vv.auth_name}</a>
This is what you want ? Index is the file name (class name), index is the method name