如何开发 iPad Web 应用程序来应对 WiFi 中断

发布于 2024-10-31 22:10:55 字数 272 浏览 6 评论 0原文

我正在考虑开发一个主要针对 iPad 的网络应用程序。它将是一个相当标准的 html+jQuery 客户端,但我正在考虑让它能够适应 wifi 中断,因为它将在 wifi 可能不稳定的会议上大量使用。我正在考虑使用存储在大量 cookie 中的 json 格式的对象,捕获的数据也存储在“json cookie”中,运行一个任务,该任务将轮询服务器连接并在可以时上传我的 json cookie。

这个整体架构听起来可行吗?任何人都可以建议一种更好的方法来管理对象和数据的客户端缓存吗?

非常感谢。

I'm looking at developing a web app that is primarily aimed at iPads. It will be a fairly standard html+jQuery client, but I was pondering making it resilient to wifi outages as it will be used a lot at conferences where wifi may be patchy. I was thinking of using json-formatted objects stored in lots of cookies, with captured data also being stored in 'json cookies', with a task running that will poll for a server connection and upload my json cookies when it can.

Does this overall architecture sound workable, and can anyone suggest a better way to manage client-side cacheing of objects and data?

Thanks very much.

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

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

发布评论

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

评论(1

罪歌 2024-11-07 22:10:55

查看 HTML5 的离线 Web 功能,以及 浏览器的 HTML5 客户端存储,而不是 cookie。这就是当今的发展方向,尤其是 iPad 上的浏览​​器对此的全面支持。

Check out the offline web capabilities of HTML5, together with HTML5 client-side storage of the browser instead of cookies. This is the way to go nowadays, especially with the full support of this by the browser on the iPad.

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