解决方案 »

  1.   

    在function A()加入
    form name="XX" method="post" action="main.php"
      

  2.   


    function A()
    {
    redirect('/main');
    }function A()
    {
    echo "<script>window.location.href='/main';</script>";
    }
      

  3.   

    可以使用js 或者 php
    js
    window.location.href
    php
    header("Location:xxx");
      

  4.   

    redirect()方法是自己定义吗 为什么我用redirect方法报错找不到这个方法
    js脚本可以跳转