<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國際加速解決方案。 廣告
                # 配置 `app.json` 文件用來對微信小程序進行全局配置,決定頁面文件的路徑、窗口表現、設置網絡超時時間、設置多 tab 等。 比如: ```json { "pages": [ "pages/index/index", "pages/logs/index" ], "window": { "navigationBarTitleText": "Demo" }, "tabBar": { "list": [{ "pagePath": "pages/index/index", "text": "首頁" }, { "pagePath": "pages/logs/logs", "text": "日志" }] }, "networkTimeout": { "request": 10000, "downloadFile": 10000 }, "debug": true } ``` ## app.json 配置項列表 | 屬性 | 類型 | 必填 | 描述 | | ---------------------------------------- | ------------ | ---- | --------------- | | [pages](https://mp.weixin.qq.com/debug/wxadoc/dev/framework/config.html#pages) | String Array | 是 | 設置頁面路徑 | | [window](https://mp.weixin.qq.com/debug/wxadoc/dev/framework/config.html#window) | Object | 否 | 設置默認頁面的窗口表現 | | [tabBar](https://mp.weixin.qq.com/debug/wxadoc/dev/framework/config.html#tabbar) | Object | 否 | 設置底部 tab 的表現 | | [networkTimeout](https://mp.weixin.qq.com/debug/wxadoc/dev/framework/config.html#networktimeout) | Object | 否 | 設置網絡超時時間 | | [debug](https://mp.weixin.qq.com/debug/wxadoc/dev/framework/config.html#debug) | Boolean | 否 | 設置是否開啟 debug 模式 | ### pages 接受一個數組,每一項都是字符串,來指定小程序由哪些頁面組成。每一項代表對應頁面的【路徑+文件名】信息,數組的第一項代表小程序的初始頁面。小程序中新增/減少頁面,都需要對 pages 數組進行修改。 文件名不需要寫文件后綴,因為框架會自動去尋找路徑下 `.json`, `.js`, `.wxml`, `.wxss` 四個文件進行整合。 ### networkTimeout 可以設置各種網絡請求的超時時間。 **屬性說明:** | 屬性 | 類型 | 必填 | 說明 | | ------------- | ------ | ---- | ---------------------------------------- | | request | Number | 否 | [wx.request](https://mp.weixin.qq.com/debug/wxadoc/dev/api/network-request.html)的超時時間,單位毫秒,默認為:60000 | | connectSocket | Number | 否 | [wx.connectSocket](https://mp.weixin.qq.com/debug/wxadoc/dev/api/network-socket.html)的超時時間,單位毫秒,默認為:60000 | | uploadFile | Number | 否 | [wx.uploadFile](https://mp.weixin.qq.com/debug/wxadoc/dev/api/network-file.html#wxuploadfileobject)的超時時間,單位毫秒,默認為:60000 | | downloadFile | Number | 否 | [wx.downloadFile](https://mp.weixin.qq.com/debug/wxadoc/dev/api/network-file.html#wxdownloadfileobject)的超時時間,單位毫秒,默認為:60000 | 如: ```json { "networkTimeout": { "request": 10000, "connectSocket": 10000, "uploadFile": 60000, "downloadFile": 60000 } } ``` ### debug 可以在開發者工具中開啟 debug 模式,在開發者工具的控制臺面板,調試信息以 info 的形式給出,其信息有`Page的注冊`,`頁面路由`,`數據更新`,`事件觸發` 。 可以幫助開發者快速定位一些常見的問題。
                  <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>

                              哎呀哎呀视频在线观看