HTML5 localStorage 本地存储文件
2015-07-16 00:08
651 查看
HTML5 的localStorage用的是SQLite数据库存储数据的,默认其中只有一张名为itemTable的表;
表中有两个字段: key和value,用来存储键值对
至于本地存储文件的位置Google了好久才找到,直接引用stackoverflow的片段:
http://stackoverflow.com/questions/8634058/where-the-sessionstorage-and-localstorage-stored/15711210#15711210
Firefox stores localstorage in
in the profile folder.
or:
or:
Chrome stores in separate files inside the
commonly:
I am a bit unsure, but think this will do the trick
As said by OammieR:
or as said by Kevin Hakanson:
表中有两个字段: key和value,用来存储键值对
至于本地存储文件的位置Google了好久才找到,直接引用stackoverflow的片段:
http://stackoverflow.com/questions/8634058/where-the-sessionstorage-and-localstorage-stored/15711210#15711210
Firefox
Firefox stores localstorage in webappsstore.sqlitefile
in the profile folder.
Firefox (Windows XP):
C:\Documents and Settings\<Windows login/user name>\Application Data\Mozilla\Firefox\Profiles\<profile folder>\webappsstore.sqlite
Firefox (Windows Vista and above):
C:\Users\<Windows login/user name>\AppData\Roaming\Mozilla\Firefox\Profiles\<profile folder>\webappsstore.sqlite
or:
%APPDATA%\Mozilla\Firefox\Profiles\<profile folder>\webappsstore.sqlite
Firefox on linux:
~/.mozilla/firefox/<profile folder>/webappsstore.sqlite
Firefox on mac:
~/Library/Application Support/Firefox/Profiles/<profile folder>/webappsstore.sqlite
or:
~/Library/Mozilla/Firefox/Profiles/<profile folder>/webappsstore.sqlite
Chrome
Chrome stores in separate files inside the Local Storagedirectory.
Chrome on windows:
%LocalAppData%\Google\Chrome\User Data\Default\Local Storage\
Chrome on linux:
~/.config/google-chrome/Default/Local Storage/
Chrome on mac:
~/Library/Application Support/Google/Chrome/<Profile>/Local Storage/
commonly:
~/Library/Application Support/Google/Chrome/Default/Local Storage/
Internet explorer:
I am a bit unsure, but think this will do the trick%userprofile%\AppData\LocalLow\Microsoft\Internet Explorer\DOMStorage
Opera
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\
相关文章推荐
- HTML5 input事件检测输入框变化
- html5笔记
- golang(5):编写WebSocket服务,客户端和html5调用
- 浅谈HTML5单页面架构(二)——backbone + requirejs + zepto + underscore
- HTML5 地理位置定位(HTML5 Geolocation)
- HTML4和HTML5之间10主要差异
- HTML5 Audio/Video 标签属性与事件
- [置顶] html5 中导航栏中菜单过长,在Div上层添加提示左右滑动的箭头,使用Hello mui功能
- html5中video标签
- H5新表单属性
- html5开发之viewport使用
- 关于w3school的html5部分output 元素实例代码(点亲自试一试进去)的问题纠正
- HTML5实现手机QQ表情功能
- 详解HTML5中div和section以及article的区别
- 转:HTML5离线篇收藏--- cache manifest
- HTML5详解及其应用
- 将HTML5 Canvas的内容保存为图片
- HTML5 postMessage 跨域交换数据
- 浅谈HTML5单页面架构(一)——requirejs + angular + angular-route
- html5 video mp4播放不了问题