<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                # 跳轉、提示和重定向 框架的跳轉分類 **直接跳轉** 和 **帶有提示的跳轉** 而帶提示跳轉又分為 成功提示跳轉 和 錯誤提示跳轉。 此外還有 **不跳轉提示** 方便DIV彈窗等地方使用。 <br/><br/> # 帶提示跳轉 ## 警告或錯誤提示并跳轉 ~~~ //請訪問http://localhost/index.php/Index/index/ class IndexController extends Controller{ public function index(){ TOERROR('請先登錄','index.php/Index/login/'); } public function login(){ echo '這是一個登錄頁面(假設的)'; } } ~~~ <br/><br/> ## 成功提示并跳轉 ~~~ //請訪問http://localhost/index.php/Index/login/ class IndexController extends Controller{ public function login(){ TOSUCCESS('您已登錄!','index.php/Index/user'); } public function user(){ echo '這是用戶中心頁(假設的)'; } } ~~~ <br/><br/> ## 直接跳轉 ~~~ //請訪問http://localhost/index.php/Index/user/ class IndexController extends Controller{ public function user(){ //跳轉到某個控制器下的某個方法去 TOURL('index.php/Index/login/'); } public function login(){ echo '這是一個登錄頁面(假設的)'; } public function link(){ //你也可以直接跳轉到指定網址 TOURL('http://www.magphp.com'); } } ~~~ <br/><br/> ## 只提示不跳轉 ~~~ class IndexController extends Controller{ //請訪問http://localhost/index.php/Index/ok/ public function ok(){ SUCCESS('這是正確提示'); } //請訪問http://localhost/index.php/Index/not/ public function not(){ ERROR('這是錯誤提示'); } } ~~~ <br/><br/> ## 改變提示跳轉的等待時間 只需要給TOSUCCESS()方法和TOERROR()方法傳入第3個參數,參數類型為正整數類型。 但是如果不指定第3個參數的時候,<span style="color:#ff0000;">**框架默認等待2秒**</span>后跳轉。 ~~~ //例:成功提示頁面等待5秒 TOSUCCESS('您已登錄!','index.php/Index/user',5); //例:錯誤提示頁面等待1秒 TOERROR('請先登錄','index.php/User/login',1); ~~~ >[warning] 在提示語中如有特殊需要可以使用html代碼,但是請注意單引號和雙引號的問題,只是框架并不推薦這種方式。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看