移动网络应用程序的 WebSQL 替代品?
让我澄清一下,当我说移动网络应用程序时,我指的是旨在跨不同移动平台运行的网络应用程序,而不是访问互联网获取数据的本机移动应用程序。
所以我做了一些阅读,看看这些移动网络应用程序如何在客户端存储数据。根据这本书:
乔纳森·斯塔克(Jonathan Stark)的《Building Andriod Apps with html, css, and javascript》
同一本书,但标题不同《
Building iPhone Apps with html, css, and javascript》(乔纳森·斯塔克(Jonathan Stark))
他讨论了使用WebSQL,但它不再是html5的一部分规格所以我想知道使用数据库存储数据以供离线使用时,WebSQL 的替代方案是什么?
Let me clarify, when I say mobile web apps I mean web apps that are designed to run across different mobile platforms, not native mobile apps that access the internet for data.
So I was doing some reading to see how these mobile web apps could store data on the client side. According to the book:
Building Andriod Apps with html, css, and javascript by Jonathan Stark
same book but with different title
Building iPhone Apps with html, css, and javascript by Jonathan Stark
He discussed using WebSQL which is not no longer part of the html5 spec. So I was wondering what is the alternative to WebSQL to storing data using a database for offline usage?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
IndexedDB 应该成为未来的标准,但遗憾的是,目前它似乎仅受桌面浏览器支持。 (FF > 4.0 & Chrome > 11)
同时,您对于 Android/IOS 的选择是使用 WebSQL 或 LocalStorage。请记住,使用本地存储时,您只能存储非常少量的数据,因此目前您的选择有些有限。
IndexedDB is supposed to be the standard going forward, but sadly it appears that it's currently only supported by desktop browsers. (FF > 4.0 & Chrome > 11)
In the meantime, your options for Android/IOS are to use WebSQL or LocalStorage. Just keep in mind that with local storage you're limited to a very small amount of data storage so at the moment your options are somewhat limited.
似乎 Indexed Database API 是新建议 http://en.wikipedia.org/wiki/Indexed_Database_API
Seems like Indexed Database API is the new suggestion http://en.wikipedia.org/wiki/Indexed_Database_API