我的本地电脑上安装了三个浏览器:firefox,chrome,opera.
find / -name 'Local Storage' /home/debian8/.config/opera/Local Storage /home/debian8/.config/google-chrome/Default/Local Storage
用于存储数据的物理目录可以通过find / -name’Local Storage’找到opera和chrome,而不是firefox.
哪个物理目录是firefox的localstorage目录?
ls /home/debian8/.mozilla/firefox/4qfwwwo5.default/storage default permanent temporary
为了追踪物理目录,数组以这种方式存储在firefox的本地存储中.
在Firefox中打开https; // www.yahoo.com
2.将数组与js存储在firebug – console中
var arrDisplay = [0,1,1]; localStorage.setItem("menuTitle",arrDisplay);
ls /home/debian8/.mozilla/firefox/4qfwwwo5.default/storage
默认永久暂时
它很可能在默认目录中.
ls /home/debian8/.mozilla/firefox/4qfwwwo5.default/storage/default https+++www.yahoo.com ls /home/debian8/.mozilla/firefox/4qfwwwo5.default/storage/default/https+++www.yahoo.com idb ls /home/debian8/.mozilla/firefox/4qfwwwo5.default/storage/default/https+++www.yahoo.com/idb 301792106ttes.files 301792106ttes.sqlite-shm 301792106ttes.sqlite 301792106ttes.sqlite-wal sqlite3 /home/debian8/.mozilla/firefox/4qfwwwo5.default/storage/default/https+++www.yahoo.com/idb/301792106ttes.sqlite-shm sqlite version 3.8.7.1 2014-10-29 13:59:56 Enter ".help" for usage hints. sqlite> .table sqlite> .exit sqlite3 /home/debian8/.mozilla/firefox/4qfwwwo5.default/storage/default/https+++www.yahoo.com/idb/301792106ttes.sqlite-wal sqlite version 3.8.7.1 2014-10-29 13:59:56 Enter ".help" for usage hints. sqlite> .table sqlite> .exit sqlite3 /home/debian8/.mozilla/firefox/4qfwwwo5.default/storage/default/https+++www.yahoo.com/idb/301792106ttes.sqlite sqlite version 3.8.7.1 2014-10-29 13:59:56 Enter ".help" for usage hints. sqlite> .table database index_data object_store unique_index_data
file object_data object_store_index
源码>从数据库中选择*
测试| https://www.yahoo.com|1|1473647521683690|0|49152
源码> select * from index_data;
源码> select * from object_store;
源码> select * from unique_index_data;
源码>从文件中选择*
源码> select * from object_data;
源码> select * from object_store_index;
没有关于menuTitle的线索.
ls /home/debian8/.mozilla/firefox/4qfwwwo5.default/storage/permanent chrome indexeddb+++fx-devtools moz-safe-about+home
很有可能是indexeddb fx-devtools目录.
ls /home/debian8/.mozilla/firefox/4qfwwwo5.default/storage/permanent/indexeddb+++fx-devtools idb ls /home/debian8/.mozilla/firefox/4qfwwwo5.default/storage/permanent/indexeddb+++fx-devtools/idb 478967115deegvatroootlss--cans.files 478967115deegvatroootlss--cans.sqlite sqlite3 /home/debian8/.mozilla/firefox/4qfwwwo5.default/storage/permanent/indexeddb+++fx-devtools/idb/478967115deegvatroootlss--cans.sqlite sqlite version 3.8.7.1 2014-10-29 13:59:56 Enter ".help" for usage hints. sqlite> .table database index_data object_store unique_index_data file object_data object_store_index sqlite> select * from database; devtools-async-storage|indexeddb://fx-devtools|1|1475141158242996|0|49152 sqlite> select * from object_store; 1|0|keyvaluepairs|
menuTitle存储在firefox的安装目录中的哪里?
解决方法
在现代Firefox中,localStorage数据存储在
webappsstore.sqliteDoc中,您可以在
profile folder中找到.
在你的情况下,它看起来像你想要的:
在你的情况下,它看起来像你想要的:
/home/debian8/.mozilla/firefox/4qfwwwo5.default/webappsstore.sqlite
/ storage / default / …文件夹用于Indexed DB文件 – 这与localStorage不同.