当使用phonegap时,在黑莓中的数据库位置是什么 [英] What is the database location in Blackberry while using phonegap
本文介绍了当使用phonegap时,在黑莓中的数据库位置是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个9800模拟器。
我安装了一个目录作为SDcard ...
I have a 9800 simulator. I mounted a directory as SDcard...
现在如果我使用
function populateDB(tx) {
tx.executeSql('DROP TABLE IF EXISTS DEMO');
tx.executeSql('CREATE TABLE IF NOT EXISTS DEMO (id unique, data)');
tx.executeSql('INSERT INTO DEMO (id, data) VALUES (1, "First row")');
tx.executeSql('INSERT INTO DEMO (id, data) VALUES (2, "Second row")');
}
function errorCB(err) {
alert("Error processing SQL: "+err.code);
}
function successCB() {
alert("success!");
}
var db = window.openDatabase("Database", "1.0", "Cordova Demo", 200000);
db.transaction(populateDB, errorCB, successCB);
那么我的数据库将存储在哪里?
Then where will my database gets stored?
推荐答案
我需要在安装应用程序之前安装SD卡,然后我应该执行我的应用程序...
I needed to mount the SD card before installing the application and then i should execute my application...
这篇关于当使用phonegap时,在黑莓中的数据库位置是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文