当您将 Web 应用程序添加到 iOS 的主屏幕时,您将无法再存储 Cookie
所以我的目标是使用离线存储来做到这一点。
主要目标是记住登录信息。
我应该以什么形式存储数据?我实际上应该如何做?
例子就太好了,谢谢!
So my goal is to use offline storage to do this.
The main goal is remembering login information.
In what form should I store the data and how should I actually go about doing this?
Examples would be great, thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用持久存储。请参阅Apple 文档中的此示例 。
UPD:Apple 现在建议使用 HTML5 的持久存储设施。不过,上面提到的文章内容非常丰富。
Use persistent storage. See this example from Apple docs.
UPD: Apple recommends using persistent storage facilities of HTML5 now. However, the above mentioned article is quite informative.
考虑一下清单系统并存储一个动态 javascript 文件,其中包含登录变量......只是一个想法
think about the manifest system and store a dynamic javascript file with login variable inside... just an idea