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

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                ## 響應輸出 [TOC] ### 設置內容類型和字符集 `Response::contentType('text/html', 'utf-8');` ### 設置響應頭信息 ~~~ Response::header('charset', 'utf-8'); 或者 Response::header(['charset'=>'utf-8']); ~~~ ### 跳轉 ~~~ /** * 跳轉 * @param string $url [跳轉地址] * @param array $params [跳轉參數] * @param integer $time [等待時間] * @return [type] [description] */ public function redirect($url = '', $params = [], $time = 0) 如果url包含:// 或者以/開頭則不生成,否則會重新生成 ~~~ ### 發送狀態碼 `Response::sendHttpCode(301);` ### 404 ~~~ /** * 響應404頁面 * @param string $tplPath [模板路徑] * @return [type] [description] */ public function _404($tplPath = '', $code = 404) ~~~ ### 一次性跳轉 通常用于登錄時記錄請求頁面,在登錄后跳轉過去 #### 記錄 ~~~ /** * 記錄當前頁 * @param string $url [如果沒有地址默認使用當前頁] * @return [type] [description] */ public function remember($url = '') ~~~ #### 跳轉 ~~~ /** * 回調上一次地址 如果地址存在返回true 否則返回false * @return [type] [description] */ public function restore() ~~~ ### 設置輸出前的回調函數 ~~~ /** * 這是一個閉包函數或者response類的方法名 * 在內容輸出前回調 * 如果是閉包那么可以接受一個參數是當前的響應類對象 * @param [type] $closure [閉包或者響應類的方法名] */ public function setCallback($closure) ~~~ ### 響應數據 #### 響應ajax ~~~ /** * ajax響應 * @param [type] $data [數據] * @param string $type [響應類型 json或者xml 其它類型默認為html] * @return [type] [description] */ public function ajax($data, $type = 'json') ~~~ #### 響應json ~~~ /** * 響應json數據 * @param [type] $data [字符串或者數組] * @param [type] $json_encode_param [json函數編碼參數] * @return [type] [description] */ public function json($data, $json_encode_param = JSON_UNESCAPED_UNICODE) ~~~ #### 響應jsonp ~~~ /** * 響應jsonp數據 * @param [type] $data [字符串或者數組] * @param string $type [回調函數] * @param string $handle [json函數參數] * @return [type] [description] */ public function jsonp($data, $handle = 'callback', $json_encode_param = JSON_UNESCAPED_UNICODE) ~~~ #### 響應xml ~~~ /** * xml數據 * @param [type] $data [數據] * @param string $root [選項] * @return [type] [description] */ public function xml($data, $option = []) 默認選項 'root' => 'dream', // 根節點 'attr' => '', // 根屬性 'item_node' => 'item', // 鍵值為數字是的節點名 'item_key' => 'id', // 鍵值為數字時的 屬性名 'encoding' => 'utf-8', // 字符編碼 ~~~ #### 設置響應數據 ~~~ * 設置數據 * @param [type] $data [description] * @return [type] [description] */ public function data($data = '') ~~~ ### http狀態碼 ~~~ /** * 獲取或設置http狀態碼 * @param string $code [description] * @return [type] [description] */ public function httpCode($code = '') ~~~
                  <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>

                              哎呀哎呀视频在线观看