WebSQL 被弃用后,如何与 HTML5 离线应用相处?
由于WebSQL已经失去了所有的支持并且开发已经停止,人们如何能够使用HTML5在Web应用程序中实现离线存储。我知道 Google Chrome 和 Safari 仍然将它作为浏览器的一部分,但我想它很快就会消失。那么哪些技术正在取代它?为了拥有离线应用程序而不是使用 webSQL,需要实现哪些不同的东西?
Since the WebSQL has lost all the support and the development being stopped, how are people able to implement Offline Storage in web apps using HTML5. I know Google Chrome and Safari are still having it as a part of the browser but I guess soon it will be lost. So which are the technologies that are replacing it and what are the different things that need to be implemented to have an offline app rather than using webSQL?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

发布评论
评论(3)
海未深2025-01-03 04:08:42
HTML5 支持 localStorage,它允许您在客户端计算机上存储大量数据,有点类似于 cookie。目前所有主流浏览器都支持它。您可以在 http://diveintohtml5.info/storage.html 阅读所有相关内容。
~没有更多了~
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
Chrome、Firefox 和 IE10 现在还支持 IndexedDB,它是 WebSQL 的替代品。
Chrome, Firefox and IE10 now also support IndexedDB, a replacement for WebSQL.