带有HTML和Javascript的sqlite [英] sqlite with HTML and Javascript

查看:72
本文介绍了带有HTML和Javascript的sqlite的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我想编写一个带有数据库连接的Windows 8应用程序。但我不知道如何使用html和javascript连接到数据库。

i want to write a windows 8 app with database connection. But i have no idea how to connect to a database using html and javascript.

我知道html5有一个sqlite库,你可以使用javascript。

I know that html5 has a sqlite libary you can use with javascript.

但是如果我写了

var db = openDatabase(...);


i得到"openDatabase"的消息;未定义或是否有另一个连接到本地数据库的解决方案?

i get the message that "openDatabase" is undefined or is there another soloution to connect to a local database?

推荐答案

我不要以为IE有window.openDataBase。



我认为IE有indexedDB:



http: //msdn.microsoft.com/en-us/library/ie/hh673548(v=vs.85).aspx



I don't think IE has window.openDataBase.

I think IE has indexedDB:

http://msdn.microsoft.com/en-us/library/ie/hh673548(v=vs.85).aspx

or

http://hacks.mozilla.org/2010/06/comparing-indexeddb-and-webdatabase/

http://hacks.mozilla.org/2010/06/comparing-indexeddb-and-webdatabase/


这篇关于带有HTML和Javascript的sqlite的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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