Please give me some advice: Routing address
作者
作者 2019-04-15 15:33:16
0
5
1133

<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>),大神们可以模拟一个给我么,刚刚学,还是有太多的不懂,可以的话,麻烦你们帮帮忙。谢谢了

作者
作者

reply all(2)
作者

$ZCHIO]ZOL~P@4BN~`YD)}9.png

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

  • reply Probably not, this means that the index method is directly assigned, and all the looped drop-down options are connected to the index. I uploaded a picture. Could you please help me take a look? It is on the second floor.
    作者 author 2019-04-16 15:31:18
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template