使用JavaScript的PhoneGap-Android的sqlite的。如何连接?PhoneGap、JavaScript、sqlite、Android

由网友(煽情i)分享简介:我是新来的Andr​​oid的PhoneGap开发。我创建在Windows XP中使用Eclipse的一个项目。我使用的SQLite数据库。我看到在文档样品code。但我不能够执行这个例子。我没有得到所需的结果。I am new to Android-Phonegap dev. I am creating a pro...

我是新来的Andr​​oid的PhoneGap开发。我创建在Windows XP中使用Eclipse的一个项目。我使用的SQLite数据库。我看到在文档样品code。但我不能够执行这个例子。我没有得到所需的结果。

I am new to Android-Phonegap dev. I am creating a project using Eclipse in Windows XP. I am using sqlite database. I saw the sample code in the docs. But I'm not able to execute this example. I am not getting the required results.

假设我想在表格格式表演示,HTML所有条目。将在code是什么的index.html?为此,程序是什么,什么是一步一步程序这样做呢?否则没有更好的教程,帮助我做到这一点?

Suppose I want to get all the entries in the table demo in tabular format, HTML. What will the code be in index.html? For that, what is the procedure and what is the step by step procedure for doing this? Or else any better tutorials which help me to do this?

由于提前

Dnyan。

推荐答案

有一件事要记住的是,如果你没有测试设备或模拟器的应用,而是像Chrome或Safari浏览器

One thing to bear in mind is that if you aren't testing the application on a device or in an emulator, but rather in a browser like Chrome or Safari,

document.addEventListener("deviceready", onDeviceReady, false);

将不起作用。我所做的是注释掉此行,只是摆在调用

won't work. What I've done is to comment out this line and just to put in a call to

onDeviceReady(); 

当我再在模拟器中测试我去掉了文件...行,并注释掉

When I then test in the emulator I uncomment the "document…" line and comment out

onDeviceReady();
阅读全文

相关推荐

最新文章