<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>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                # GET請求方法 ## route.php路由文件里 ~~~ <?php use think\Route; Route::get('admin/:name','admin/index/index_get'); ~~~ --------------------------- admin/index/index文件里-------------------------------- ~~~ <?php namespace app\admin\controller; class Index{ public function index_get($name){ dump($name); } ~~~ ![](https://img.kancloud.cn/d2/e2/d2e252a47cca88be51582f2c39e951eb_987x395.png) # POST請求方法 ## route.php路由文件里 ~~~ <?php use think\Route; Route::post('admin','admin/index/index_post'); ~~~ --------------------------- admin/index/index文件里-------------------------------- ~~~ <?php namespace app\admin\controller; class Index{ public function index_post(){ dump(input()); } } ~~~ 注意:admin/index/index文件里 輸出的方式為 input() 這個方法。 POST請求用模擬器發送請求而不是瀏覽器 # put請求方法 ## route.php路由文件里 ~~~ <?php use think\Route; Route::put('admin','admin/index/index_put'); ~~~ --------------------------- admin/index/index文件里-------------------------------- ~~~ <?php namespace app\admin\controller; class Index{ public function index_put(){ dump(); } } ~~~ put請求用模擬器發送請求而不是瀏覽器 <br/> <br/> # delete請求方法 ## route.php路由文件里 ~~~ <?php use think\Route; Route::delete('admin','admin/index/index_delete); ~~~ --------------------------- admin/index/index文件里-------------------------------- ~~~ <?php namespace app\admin\controller; class Index{ public function index_delete(){ dump(); } } ~~~ delete請求用模擬器發送請求而不是瀏覽器 <br/> <br/> # any請求方法 ## route.php路由文件里 ~~~ <?php use think\Route; Route::any('admin','admin/index/index_any); ~~~ --------------------------- admin/index/index文件里-------------------------------- ~~~ <?php namespace app\admin\controller; class Index{ public function index_any(){ dump(); } } ~~~ any請求用模擬器發送請求而不是瀏覽器 ## any是最強大的請求方法了,可以全部包括上面幾種 ## 以上admin為模塊 ![](https://img.kancloud.cn/f6/cd/f6cde1a84784e29c54146f1fdff745e2_962x743.png) any路由里 如果限制只允許get和post請求 那么路由添加 ['method'=>'get|post'] ~~~ Route::any('admin/login','admin/LoginController/index',['method'=>'get|post']); ~~~
                  <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>

                              哎呀哎呀视频在线观看