简体   繁体   English

SD卡上的html5本地存储

[英]html5 local storage on SD card

HI! 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? 我搜索了很多,但我没有找到这个问题的答案:是否有可能在SD卡或本地设备上保存或设置html5本地存储? Can anybody help me? 有谁能够帮我? Thanks! 谢谢!

I don't think the Local Storage API lets you decide the physical location of the data being stored. 我认为Local Storage API不允许您决定所存储数据的物理位置。 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. 它只允许您通过JavaScript将键/值对存储在用户的浏览器中,就像cookie一样,只是它保持在本地并且不会传输到服务器。

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. 浏览器可能会选择将其本地存储数据放入SD卡或其运行的设备上,但您无法检查数据的物理位置。

See http://diveintohtml5.ep.io/storage.html#localstorage for a good guide on what local storage can do, and how to use it. 有关本地存储可以执行的操作以及如何使用它的详细指南,请参阅http://diveintohtml5.ep.io/storage.html#localstorage

http://www.w3.org/TR/file-writer-api 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. 阅读支持已经完成,并且有一些利用它的Chrome扩展(写入空间),但是应用程序没有写支持,因为chrome没有api,因为它仍然是wip。 The chrome folks are doing a nice job with it and I think its mostly done. Chrome人员用它做得很好,我认为它大部分已完成。 I've been searching around for examples. 我一直在寻找例子。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM