SD卡上的html5本地存储
你好! 我已经搜索了很多,但没有找到这个问题的答案:Is there any possible to save or set the html5 local storage on SD card or local on device?有人可以帮助我吗? 谢谢!
HI!
I have searched a lot, but I didn't find the answer to this question: Is there any possibility to save or set the html5 local storage on SD card or locally on device? Can anybody help me?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为本地存储 API 不能让您决定存储数据的物理位置。它只是让您通过 JavaScript 将键/值对存储在用户的浏览器中,就像 cookie 一样,只不过它保留在本地并且不会传输到服务器。
浏览器可能会选择将其本地存储数据放入 SD 卡或运行它的设备上,但您无法检查数据的物理位置。
请参阅 http://diveintohtml5.ep.io/storage.html#localstorage 了解更多信息有关本地存储功能以及如何使用它的指南。
I don’t think the Local Storage API lets you decide the physical location of the data being stored. It just lets you store key/value pairs in the user’s browser via JavaScript, like a cookie except that it stays local and isn’t transmitted to the server.
The browser might choose to put its local storage data onto an SD card, or the device that it’s running on, but you don’t get to inspect the physical location of the data.
See http://diveintohtml5.ep.io/storage.html#localstorage for a good guide on what local storage can do, and how to use it.
http://www.w3.org/TR/file-writer-api
我相信这就是您所需要的。读取支持已完成,并且有一些 chrome 扩展可以利用它(写入空间),但是应用程序没有写入支持,因为 chrome 没有 api,因为它仍然是 wip。 chrome 开发人员做得很好,我认为它已经基本完成了。我一直在寻找例子。
http://www.w3.org/TR/file-writer-api
I do belive this is what you would need. Read support is done and there are some chrome extensions that take advantage of it (write space), however the apps don't have write support because chrome dosen't have the api, because its still wip. The chrome folks are doing a nice job with it and I think its mostly done. I've been searching around for examples.