<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國際加速解決方案。 廣告
                > 實現如圖所例 ![](https://img.kancloud.cn/71/31/713136021e9a4ceb4073cef64f11f6b2_788x480.png) ## 示例代碼 ``` <template> <view class="content"> <view>應用緩存:{{storageSize}}</view> <button type="default" @tap="clearStorage">清除緩存</button> </view> </template> <script> export default { data() { return { storageSize : '' } }, onLoad() { this.getStorageSize(); }, methods:{ getStorageSize:function(){ let that = this; uni.getStorageInfo({ success(res) { //console.log(res.keys); //console.log(res.limitSize); let size = res.currentSize; if (size < 1024) { that.storageSize = size + ' B'; } else if (size/1024>=1 && size/1024/1024<1) { that.storageSize = Math.floor(size/1024*100)/100 + ' KB'; } else if (size/1024/1024>=1) { that.storageSize = Math.floor(size/1024/1024*100)/100 + ' M'; } } }) }, clearStorage:function (){ let that = this; uni.showModal({ title:'提示', content:'確定清除緩存嗎?', confirmText:'立即清除', success(res) { if(res.confirm){ uni.clearStorageSync(); //重新獲取并顯示清除后的緩存大小 that.getStorageSize(); uni.showToast({ title:'清除成功' }) } } }) } } } </script> ```
                  <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>

                              哎呀哎呀视频在线观看