它是推荐使用Web SQL数据库存储在客户端 [英] Is it recommended to use the Web SQL Database for storage on the client side

查看:175
本文介绍了它是推荐使用Web SQL数据库存储在客户端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

的使用情形是离线时具有在客户端的应用程序存储数据。
它是建议使用Web SQL数据库(其中Chrome和Safari浏览器的支持,但不FF),或等待浏览器来实现索引数据库API?

The use case is to have an application store data on the client side when offline. Is it advisable to use the Web SQL Database (which Chrome and Safari support, not FF though), or wait for the browsers to implement the Indexed Database API?

推荐答案

9个月后,这一问题被提出和Web SQL数据库是..no不再积极维护和Web应用工作组并没有打算维持它进一步:<一href=\"http://en.wikipedia.org/wiki/Web_SQL_Database\">http://en.wikipedia.org/wiki/Web_SQL_Database.

9 months after this question was posed and the Web SQL Database is "..no longer in active maintenance and the Web Applications Working Group does not intend to maintain it further": http://en.wikipedia.org/wiki/Web_SQL_Database.

如果您正在为明年上映(尤其是移动)溶液,然后IndexedDB的是更好的选择。如果您现在需要覆盖(不包括火狐),那么你可以使用Web SQL数据库或JSON序列化对象到localStorage的。

If you are developing a solution for release next year (especially mobile) then IndexedDB is the better option. If you need coverage now (excluding Firefox), then you can use Web SQL Database or serializing JSON objects into LocalStorage.

这篇关于它是推荐使用Web SQL数据库存储在客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆