久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      nw.js的localStorage的物理儲存實例詳解

      前言

      因為在做美團外賣商家端的nw.js殼子項目,需要保證在殼子里面使用localStorage的數(shù)據(jù)可以持久化保存。
      發(fā)現(xiàn)nw可以保存,即使刪除應用重寫打包也可以保存,所以解決了這個需求,但是還是需要知道具體儲存在哪里,否則不清楚什么情況下數(shù)據(jù)會丟失。

      儲存位置

      nw.js打包出來的應用的localStorage的儲存目錄為:
      **C:Users【用戶名】AppDataLocal【nw應用名稱】User DataDefaultLocal Storagechrome-extension_【隨機字符】_0.localstorage**

      比如我的電腦上的位置是:
      C:UsersxxcanghaiAppDataLocalwaimai_e_client_nwUser DataDefaultLocal Storagechrome-extension_blodpelipeilefodephhjbnidgkbghmj_0.localstorage

      nw.js的localStorage的物理儲存實例詳解

      打開方式

      此localStorage文件為二進制文件,不能直接使用文本編輯器打開,但是可以通過二進制文件查看器訪問。
      如我在nw應用中設(shè)置了一個localStorage的值:xxcanghai 123
      nw.js的localStorage的物理儲存實例詳解?

      然后用十六進制編輯器 WinHex打開 chrome-extension_blodpelipeilefodephhjbnidgkbghmj_0.localstorage 文件,就可以查看到里面的儲存的xxcanghai123
      nw.js的localStorage的物理儲存實例詳解

      附 其他瀏覽器localStorage的儲存位置

      火狐瀏覽器

      Firefox將localstorage文件:webappsstore.sqlite 存儲在配置文件文件夾中
      火狐瀏覽器 (Windows XP):
      C:Documents and Settings<Windows login/user name>Application DataMozillaFirefoxProfiles

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號