html5本地存储
所以我试图找出客户端数据库实际存储的位置。如果我创建这样的东西,
var mcTasks = {}; mcTasks.webdb = {}; //OPENING THE DATABASE mcTasks.webdb.db = null; mcTasks.webdb.open = function() { var dbSize = 5 * 1024 * 1024; // 5MB mcTasks.webdb.db = openDatabase('todo', '1.0', 'todo manager', dbSize); }
它存储在哪里?在缓存中?如果是这样,这意味着如果我清除缓存,信息就会丢失,对吗?
我试图找出 sqlLite 或 window.localStorage 哪个解决方案更好,任何帮助都会受到赞赏。谢谢!
so I'm trying to figure out where the client side db gets stored actually. If I create something like this
var mcTasks = {}; mcTasks.webdb = {}; //OPENING THE DATABASE mcTasks.webdb.db = null; mcTasks.webdb.open = function() { var dbSize = 5 * 1024 * 1024; // 5MB mcTasks.webdb.db = openDatabase('todo', '1.0', 'todo manager', dbSize); }
Where does this get stored? in cache? and if so that means that if I clear the cache the info gets lost right?
I'm trying to figure out which solution is better sqlLite or window.localStorage, any help is appreciated. thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它作为持久文件存储在客户端计算机上的某个位置。
这与缓存分离,因此清除缓存不会对存储的数据产生影响。
文件的确切存储位置取决于实现。
It gets stored in a location on the client machine, as a persistent file.
This is separate from the cache, so clearing the cache shouldn't have an effect on the stored data.
Where exactly the file is stored depends on the implementation.