iPhone网络应用程序的最佳客户端数据存储?

时间:2022-02-02 20:06:14

I am building a web app targeting the iPhone. It is similar to a To Do list. I need the application to be able to work offline, i.e., it should allow the user to add/edit/delete entries when there is no connection to the server, which will later get synced when the server is online again.

我正在构建一个针对iPhone的网络应用程序。它类似于待办事项列表。我需要应用程序能够脱机工作,即,它应该允许用户在没有连接到服务器时添加/编辑/删除条目,这将在服务器再次联机时进行同步。

How do you recommend I store this data (remember it is a web app) client-side ? I assume cookies are not safe to use, since they could be cleared at some point. I understand that both Dojo and ExtJs provide support for client-side data stores - which library will provide the best functionality while staying lean and mean? What other libraries should I investigate? Do any of these options provide synchronization capabilities with the server-side data store?

你如何建议我存储这些数据(记住它是一个Web应用程序)客户端?我认为cookie使用起来不安全,因为它们可以在某些时候被清除。据我所知,Dojo和ExtJ都支持客户端数据存储 - 哪些库可以提供最佳功能,同时保持精益和平均值?我应该调查哪些其他图书馆?这些选项中的任何一个都提供服务器端数据存储的同步功能吗?

1 个解决方案

#1


Mobile Safari is WebKit based and is equipped with HTML5-based client-side database storage. See this Surfin' Safari blog post.

Mobile Safari基于WebKit,配备基于HTML5的客户端数据库存储。查看Surfin的Safari博客文章。

If your web application is iPhone only, this is definitely the direction you should go.

如果您的网络应用程序只是iPhone,这绝对是您应该去的方向。

#1


Mobile Safari is WebKit based and is equipped with HTML5-based client-side database storage. See this Surfin' Safari blog post.

Mobile Safari基于WebKit,配备基于HTML5的客户端数据库存储。查看Surfin的Safari博客文章。

If your web application is iPhone only, this is definitely the direction you should go.

如果您的网络应用程序只是iPhone,这绝对是您应该去的方向。