<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之旅 廣告
                # 獲取數據緩存信息 ### wx.getStorageInfo(OBJECT) 異步獲取當前storage的相關信息 **OBJECT參數說明:** | 參數 | 類型 | 必填 | 說明 | | -------- | -------- | ---- | ------------------------ | | success | Function | 是 | 接口調用的回調函數,詳見返回參數說明 | | fail | Function | 否 | 接口調用失敗的回調函數 | | complete | Function | 否 | 接口調用結束的回調函數(調用成功、失敗都會執行) | **success返回參數說明:** | 參數 | 類型 | 說明 | | ----------- | ------------ | ---------------- | | keys | String Array | 當前storage中所有的key | | currentSize | Number | 當前占用的空間大小, 單位kb | | limitSize | Number | 限制的空間大小,單位kb | **示例** ```js wx.getStorageInfo({ success: function(res){ console.log('獲取成功') console.log(res) }, fail: function() { console.log('獲取失敗') }, complete: function() { console.log('獲取完畢') } }) ``` :-: ![](http://xiaoyulive.oss-cn-beijing.aliyuncs.com/imgs/weixin/025.png) ### wx.getStorageInfoSync 同步獲取當前storage的相關信息 **示例代碼:** ```js try { var res = wx.getStorageInfoSync() console.log(res.keys) console.log(res.currentSize) console.log(res.limitSize) } catch (e) { // Do something when catch error } ```
                  <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>

                              哎呀哎呀视频在线观看