<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>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                # **操作localStorage** > localStorage 和 sessionStorage 屬性允許在瀏覽器中存儲 key/value 對的數據。 >localStorage 用于長久保存整個網站的數據,保存的數據沒有過期時間,直到手動去刪除。 >localStorage 屬性是只讀的。 **提示:**如果你只想將數據保存在當前會話中,可以使用[sessionStorage](https://www.runoob.com/jsref/prop-win-sessionstorage.html)屬性, 改數據對象臨時保存同一窗口(或標簽頁)的數據,在關閉窗口或標簽頁之后將會刪除這些數據。 > 版本:無 ``` <script type="text/javascript"> Every.use(['storage'],function(storage){ var lStorage = storage.localStorage; /** * 設置/儲存緩存 * @Author 任鵬鵬 * @param {[string]} key [鍵] * @param {[string]} value [值] * @param {Function} callback [回調] * set(key,value,callback); */ lStorage.set('test','嗯嗯'); lStorage.set('testjson',{a:1,b:1},function(status){ // dosomething... }); /** * 獲取緩存 * @Author 任鵬鵬 * @param {[string]} key [鍵] * @param {Function} callback [回調] * get(key,callback) */ lStorage.get('testjson'); lStorage.get('testjson',function(value){ // dosomething... }); /** * 刪除緩存 * @Author 任鵬鵬 * @param {[string]} key [鍵] * @param {Function} callback [回調] * remove(key,callback) */ lStorage.remove('testjson'); lStorage.remove('testjson',function(status){ // dosomething... }); /** * 清除所有緩存 * @Author 任鵬鵬 * @param {Function} callback [回調] * clear(callback) */ lStorage.clear(); lStorage.clear(function(status){ // dosomething... }); /** * 獲取所有的緩存 * @Author 任鵬鵬 * @param {Function} callback [回調] * all(callback) */ lStorage.all(); lStorage.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>

                              哎呀哎呀视频在线观看