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

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                ## 語法: ## json() //數據輸出為json格式 ## xml() //數據輸出為xml格式 ## jsonp() //數據輸出為jsonp格式 代碼案例: ~~~ class Index { public function index(){ $data=['name'=>'liudehua','age'=>25]; return json($data); } } ~~~ ~~~ class Index { public function index(){ $data=['name'=>'liudehua','age'=>25]; return xml($data); } } ~~~ ~~~ class Index { public function index(){ $data=['name'=>'liudehua','age'=>25]; return jsonp($data); } } ~~~ jsonp與json方法區別 就在于跨域調用 ## json 獲取對象數據方法 一般獲取code就夠用了 這里一定是dump出對象來 ``` dump( json($data)->get數組名()); ``` ![](https://img.kancloud.cn/65/d0/65d032b73f92ef93458fdfdfc48ea964_1169x739.png) ## 代碼案例: ~~~ public function index(){ $data=['name'=>'liudehua','age'=>25]; dump( json($data)->getCode()); } ~~~
                  <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>

                              哎呀哎呀视频在线观看