离线 Web 应用程序的案例

发布于 2024-09-09 04:24:31 字数 251 浏览 2 评论 0原文

随着许多浏览器添加了适当的本地存储支持(以及整个 HTML5 的热潮),有很多关于离线 Web 应用程序与桌面软件竞争的讨论。但是,事实上 - 在浏览器上快速“清除私人数据”(很多人都会这么做) - 会清除所有本地存储数据。

我现在认为浏览器中的本地存储最多只能用于在与 Web 服务器同步之前临时缓存数据,但由于我上面概述的问题,真正的离线 Web 应用程序不能永久依赖 HTML5 的本地存储。

实际上广泛依赖数据的离线 Web 应用程序是否存在范围?

With many browsers adding proper local storage support (and with this whole HTML5 buzz), there is a lot of talk about offline web apps competing with desktop software. But, as a matter of fact - one quick "clear private data" on your browser (which a lot of people do) - clears all the local storage data.

I'm now thinking that local storage in browsers can at best be used to cache data temporarily before being sync-ed with the web server, but truly offline web applications can't rely on HTML5's local storage permanently due to the problem I outlined above.

Is there a scope for offline web applications that actually depend on data extensively?

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

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

发布评论

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

评论(1

不忘初心 2024-09-16 04:24:31

我的看法是,在线网络应用程序的离线功能可以与桌面软件竞争,但不能与纯粹的离线网络应用程序竞争。

为什么?在线网络应用程序的主要缺点是,当您在执行任何工作时失去网络连接时会发生什么情况。既然这个问题已经解决了,那么竞争就真正开始了。想象一下在线编辑文档,然后在没有互联网的情况下四处走动,返回在线状态,然后同步更改并继续工作,就像什么都没发生一样。那真是太棒了。

为此,浏览器应该允许将数据存储在您可以选择的位置,这意味着可以访问操作系统层,但这可能不会很快发生......

My take on this is that the offline capability of online web apps can compete with desktop software, but not pure offline web-apps.

Why? Well, the major drawback of online web apps was what happens when you lose your network connection when doing any work. Seeing as this can be resolved now, the competition is truly on. Imagine editing a document online, then move around without internet, come back online and then sync the changes and continue to work as if nothing happened. That is truly awesome.

For this to work, the browser should allow to store data in a location that you can pick which would mean access to OS layer, which will probably not happen anytime soon...

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