Javascript 哪个版本的 firefox 将支持 Web SQL?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5183977/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Which version of firefox will support Web SQL?
提问by Rotem Tamir
I'm developing an app that needs offline storage SQL.
我正在开发一个需要离线存储 SQL 的应用程序。
I try:
我尝试:
if (window.openDatabase) {
window.db = window.openDatabase("app", "", "my app db name", 1024*1024);
}
this works great on Chrome but doesn't work on my Firefox 3.6
这在 Chrome 上效果很好,但在我的 Firefox 3.6 上不起作用
What version of firefox will support openDatabase?
哪个版本的 firefox 将支持 openDatabase?
回答by JamesHalsall
Mozilla have said they will never implement it according to this thread:
Mozilla 表示他们永远不会根据这个线程实现它:
回答by Joe Stefanelli
回答by amit kate
Default location for WebSQL DB in case of Firefox:
Firefox 中 WebSQL DB 的默认位置:
C:\Users\username\AppData\Roaming\Mozilla\Firefox\Profiles\mlolddya.default\databases\
For Chrome:
对于铬:
C:\Users\username\AppData\Local\Google\Chrome\User Data\Default\databases\
for safari:
对于野生动物园:
C:\Users\username\AppData\Local\Apple Computer\Safari\Databases\
new version of FF are not using WebSQL they are moved to IndexedDB.which is good no need to give support for two different db if you dont want to give support for Safari
新版本的 FF 不使用 WebSQL,它们被移动到 IndexedDB。如果您不想支持 Safari,则无需支持两个不同的数据库,这很好