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

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                [TOC] # 插件 store 本地存儲 store為需要本地存儲的解決方案 ## 使用示例 ```javascript var store = v.store // 存儲username為vace store.set('username', 'vace') // 獲取 'username' store.get('username') // 刪除 'username' store.remove('username') // 清楚所有本地存儲,非特殊情況不要使用,會刪了隊友的- - store.clear() // 可存儲對象,內部使用JSON.stringify序列化 store.set('user', { name: 'marcus', likes: 'javascript' }) // 內部會嘗試JSON.parse 解析字符串,不用自己解析 var user = store.get('user') alert(user.name + ' likes ' + user.likes) // 獲取所有的本地存儲 store.getAll().user.name == 'marcus' // 循環讀取存儲內容 store.forEach(function(key, val) { console.log(key, '==', val) }) ``` ## API使用 * `v.store.set(key,value)` * `v.store.get(key,defaultValue='')` * `v.store.has(key)` * `v.store.remove(key)` * `v.store.clear()` * `v.store.getAll()` * `v.store.forEach(cb)` ## 兼容概覽 ------------------ - Tested in iOS 4+ - Tested in Firefox 3.5 - Tested in Firefox 3.6 - Tested in Firefox 4.0+ - Support dropped for Firefox < 3.5 (see notes below) - Tested in Chrome 5 - Tested in Chrome 6 - Tested in Chrome 7 - Tested in Chrome 8 - Tested in Chrome 10 - Tested in Chrome 11+ - Tested in Safari 4 - Tested in Safari 5 - Tested in IE6 - Tested in IE7 - Tested in IE8 - Tested in IE9 - Tested in IE10 - Tested in Opera 10 - Tested in Opera 11 - Tested in Opera 12
                  <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>

                              哎呀哎呀视频在线观看