实现 Web 应用程序离线存储的最佳方式(适用于所有浏览器和平板电脑)

发布于 2024-11-10 10:50:01 字数 412 浏览 7 评论 0原文

我想知道为 Web 应用程序实现离线功能的最佳方法。我已经在网上搜索过,但无法弄清楚当前离线创建 Web 应用程序的最佳方法是什么(并且将来会起作用)

我可以使用离线应用程序缓存保存 Web 应用程序的布局...

但是问题是我有很多需要离线存储的键值数据。使用 localStorage、sessionStorage 离线保存数据的限制是 5MB...这还不够...

我搜索以下内容:

  • 来自 Google 的 Gears:不再支持
  • Web SQl 数据库:不再支持
  • IndexedDb HTML5:并非所有人都支持浏览器(仅限 Chrome 和 Firefox)。我认为这是目前最好的方法...

是否可以增加离线应用程序缓存并以文本格式保存离线应用程序缓存的键值数据?

I wonder about the best way to implement offline possiblities for a web application. I have searched the web but couldn't figured out what currently the best way is to create a web application offline (and will work in the future)

The lay-out of the web application i can save with Offline Application Caching...

But the problem is that i have a lot of key-value data that i need to store offline. With localStorage, sessionStorage the limit to save data offline is 5MB...And that's not enough...

I seach for the following things:

  • Gears from Google: not supported anymore
  • Web SQl database: not supported anymore
  • IndexedDb HTML5: not supported by all browsers (only chrome and firefox). I think this is currently the best way...

Is it possible to increase the Offline Application Caching and save the key-value data in a text format witch offline application caching??

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

薯片软お妹 2024-11-17 10:50:01

https://github.com/marcuswestin/store.js 已经成熟(约 2 年),仍在更新并可在一系列令人惊叹的浏览器中运行。

https://github.com/marcuswestin/store.js is mature (~2 years), still updated and works in an amazing array of browsers.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文