<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之旅 廣告
                ## 1.發布H5端 ## 1、路由模式為 history,運行的基礎路徑為/h5/ 在HbuilderX打開`manifest.json`\->`h5配置`\->路由模式設置為`history`,運行的基礎路徑填寫為`/h5/` 如以下圖片所示: ![](https://img.kancloud.cn/02/c4/02c4864a3aa5addabfce6032f3abf6a2_983x751.png) 點擊HBuilderx`工具欄`→`發行`→`網站-H5手機版(僅適用于uni-app)(H)` ![](https://img.kancloud.cn/42/d0/42d09e8f671f4a192aadf0e22ae8eb28_1200x544.png) 請填寫您的網站標題 和 網站域名后點擊`發行`即可。 ![](https://img.kancloud.cn/7f/6d/7f6d86337ba9d49dc4c2b4957c0ba7bd_1200x544.png) 編譯成功后。在HBuilderX的控制臺會輸出: ![](https://img.kancloud.cn/dc/f5/dcf5bc863db684a7c2a4d3d30c37b164_1301x235.png) ![](https://img.kancloud.cn/42/06/420604639a4a4d0e1d2f8d0694a02541_710x176.png) #### 服務器安裝: 在你的項目的`根目錄/public`下新建一個目錄為`h5`(演示目錄,以實際項目為準),把剛剛打包好的`static`文件夾和`index.html`上傳到`h5`目錄下。 接著,我們需要設置偽靜態。保證可以正常的刷新或直接打開非首頁。 如果你用的是`nginx`,則其偽靜態為: ~~~bash location /h5/ { try_files $uri /h5/index.html; } location / { if (!-e $request_filename){ rewrite ^(.*)$ /index.php?s=$1 last; break; } } ~~~ 訪問路徑:`域名/h5/` 如果你用的是`apache`則其偽靜態為: ~~~apache <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^h5/(.*) /h5/index.html [QSA,PT,L] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteCond $1 !^(h5) RewriteRule ^(.*)$ index.php?s=/$1 [QSA,PT,L] </IfModule> ~~~ > ### 溫馨提示:配置完后記得重啟下服務。 > ## 2、路由模式為 hash,運行的基礎路徑為./ 在HbuilderX打開`manifest.json`\->`h5配置`\->路由模式設置為`hash`,運行的基礎路徑填寫為`./` 如以下圖片所示: ![](https://img.kancloud.cn/53/c8/53c864a14ac7017384d64a28315029e0_873x695.png) 點擊HBuilderx`工具欄`→`發行`→`網站-H5手機版(僅適用于uni-app)(H)` ![](https://img.kancloud.cn/42/d0/42d09e8f671f4a192aadf0e22ae8eb28_1200x544.png) 請填寫您的網站標題 和 網站域名后點擊`發行`即可。 ![](https://img.kancloud.cn/7f/6d/7f6d86337ba9d49dc4c2b4957c0ba7bd_1200x544.png) 編譯成功后。在HBuilderX的控制臺會輸出: ![](https://img.kancloud.cn/dc/f5/dcf5bc863db684a7c2a4d3d30c37b164_1301x235.png) ![](https://img.kancloud.cn/42/06/420604639a4a4d0e1d2f8d0694a02541_710x176.png) #### 服務器安裝: 在項目的 根目錄/public 下新建一個目錄為h5(演示目錄,以實際項目為準),把剛剛打包好的static文件夾和index.html上傳到h5目錄下。 訪問路徑:`域名/h5/`
                  <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>

                              哎呀哎呀视频在线观看