C:\Users\unive\AppData\Local\Google\Chrome\User Data\Default\Local Storage
为什么最新的修改日期都是2017年?存放数据的文件到底在哪里?
找了一会才发现地方---就是该文件夹下有个leveldb文件夹,点进去后有个001531.log文件(我的是这个名字)
因为修改日期是最新的,所以也就确定其数据是存放在了这里面:
然后写一个页面测试一下:
测试完后打开该log文件,搜索123456789,成功找到:
关于该log文件,其实它还存放了很多个人在谷歌浏览器上的内容(比如百度搜索的内容)可以去看一下。
最后,关于不同浏览器下localStorage存储的路径如下:
Firefox stores localstorage in webappsstore.sqlite
file in the profile folder.
C:\Documents and Settings\\Application Data\Mozilla\Firefox\Profiles\\webappsstore.sqlite
C:\Users\\AppData\Roaming\Mozilla\Firefox\Profiles\\webappsstore.sqlite
or:
%APPDATA%\Mozilla\Firefox\Profiles\\webappsstore.sqlite
~/.mozilla/firefox//webappsstore.sqlite
~/Library/Application Support/Firefox/Profiles//webappsstore.sqlite
or:
~/Library/Mozilla/Firefox/Profiles//webappsstore.sqlite
Chrome stores in separate files inside the Local Storage
directory.
%LocalAppData%\Google\Chrome\User Data\Default\Local Storage\
~/.config/google-chrome/Default/Local Storage/
~/Library/Application Support/Google/Chrome//Local Storage/
commonly:
~/Library/Application Support/Google/Chrome/Default/Local Storage/
I am a bit unsure, but think this will do the trick
%userprofile%\AppData\LocalLow\Microsoft\Internet Explorer\DOMStorage
As said by OammieR:
C:\Users\Administrator\AppData\Roaming\Opera\Opera\sessions\autosave.win
or as said by Kevin Hakanson:
C:\Users\Administrator\AppData\Local\Opera\Opera\pstorage\
其原帖:
https://stackoverflow.com/questions/8634058/where-the-sessionstorage-and-localstorage-stored/15711210#15711210