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

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                Excel 導出在管理后臺中很常用,但常規的方法很麻煩,tpadmin 提供了一鍵導出的方法 ##方法 `\Excel::export($head, $body, $name = null, $version = '2007')` ##參數 | 名稱 | 類型 | 說明 | | --- | --- | --- | | head | array | Excel 頭部數據 | | body | array | Excel 正文數據 | | name | null \| string | 文件名,不含擴展名,為空默認為當前時間 | | version | enum | Excel 版本,2003 \ 2007 \ pdf \ ods | ##使用示例 ``` $header = ['用戶ID', '登錄IP', '登錄地點', '登錄瀏覽器', '登錄操作系統', '登錄時間']; $data = Db::name("LoginLog")->field("id", true)->order("id desc")->limit(20)->select(); if ($error = \Excel::export($header, $data, "示例Excel導出", '2007')) { throw new Exception($error); } ``` ##助手函數 `export_excel($header, $body, $name = null, $version = '2007')`
                  <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>

                              哎呀哎呀视频在线观看