<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國際加速解決方案。 廣告
                # **操作sessionStorage** >localStorage 和 sessionStorage 屬性允許在瀏覽器中存儲 key/value 對的數據。 sessionStorage 用于臨時保存同一窗口(或標簽頁)的數據,在關閉窗口或標簽頁之后將會刪除這些數據。 **提示:**如果你想在瀏覽器窗口關閉后還保留數據,可以使用[localStorage](https://www.runoob.com/jsref/prop-win-localstorage.html)屬性, 該數據對象沒有過期時間,今天、下周、明年都能用,除非你手動去刪除。 > 版本:無 ``` <script type="text/javascript"> Every.use(['storage'],function(storage){ var sStorage = storage.sessionStorage; /** * 設置/儲存緩存 * @Author 任鵬鵬 * @param {[string]} key [鍵] * @param {[string]} value [值] * @param {Function} callback [回調] * set(key,value,callback); */ sStorage.set('test','嗯嗯'); sStorage.set('testjson',{a:1,b:1},function(status){ // dosomething... }); /** * 獲取緩存 * @Author 任鵬鵬 * @param {[string]} key [鍵] * @param {Function} callback [回調] * get(key,callback) */ sStorage.get('testjson'); sStorage.get('testjson',function(value){ // dosomething... }); /** * 刪除緩存 * @Author 任鵬鵬 * @param {[string]} key [鍵] * @param {Function} callback [回調] * remove(key,callback) */ sStorage.remove('testjson'); sStorage.remove('testjson',function(status){ // dosomething... }); /** * 清除所有緩存 * @Author 任鵬鵬 * @param {Function} callback [回調] * clear(callback) */ sStorage.clear(); sStorage.clear(function(status){ // dosomething... }); /** * 獲取所有的緩存 * @Author 任鵬鵬 * @param {Function} callback [回調] * @ all(callback) */ sStorage.all(); sStorage.all(function(list){ console.log(list); }); }); </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>

                              哎呀哎呀视频在线观看