缘起
localstorage
以chrome为例,localstorage的存储如下:
存储位置: %appdata%\Local\Google\Chrome\User Data\Default\Local Storage\*
使用sqlite命令查看如下:
1 2 3 4 5 6 7 8 |
sqlite3 http_open.weibo.com_0.localstorage SQLite version 3.3.6 Enter ".help" for instructions sqlite> .schema CREATE TABLE ItemTable (key TEXT UNIQUE ON CONFLICT REPLACE, value BLOB NOT NULL ON CONFLICT FAIL); sqlite> select * from ItemTable; name|phpor sqlite> |
大小限制: 5M
参考资料:
http://www.html5china.com/HTML5features/LocalStorage/20110926_2022.html
http://blog.csdn.net/gointoit/article/details/9151629
http://blog.csdn.net/yhawaii/article/details/7246106
http://www.iteye.com/magazines/62-html5-local-storage