简体   繁体   English

HTML离线数据存储

[英]Offline data storage in HTML

Just wanted to know is there any way where we can store offline data/imagee(20MB+) in HTML which is supported IE 10 metro browser. 只是想知道有什么方法可以使用支持IE 10 Metro浏览器的HTML存储脱机数据/图像(20MB +)。 I haver gone through below links 我已经通过下面的链接

Building Offline storage 建立离线存储

Appreciate you can give me a running sample which stores the data/images locally and retrieves later on. 感谢您可以给我一个运行中的示例,该示例将数据/图像本地存储并在以后检索。 Note this should be supported on IE10 of Windows 8 metro(tablet PC). 请注意,Windows 8 Metro(平板电脑)的IE10应该支持此功能。

There are several means of doing this: 有几种方法可以做到这一点:

  • Using the appCache , you can store offline data using manifests, but are you are strictly limited in how much data you can store 使用appCache ,您可以使用清单存储脱机数据,但是严格限制可以存储多少数据
  • Using the indexedDB , you can store much more data, but it's up to you to read and write the data programatically. 使用indexedDB ,您可以存储更多的数据,但是由您自己以编程方式读取和写入数据。

using a combination of the two, you can use the appCache to store your HTML/JavaScript offline, and then, while offline, pull the 20+MB of image data out of the indexedDB. 结合使用两者,您可以使用appCache脱机存储HTML / JavaScript,然后在脱机时从indexedDB中拉出20 + MB的图像数据。

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

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