我必须将 sql lite 数据库放在哪里才能与使用类似以下的 sql lite 脚本访问它的应用程序一起使用?:
function GetComuni(dbName,sqlStmt)
{
try
{
if (!window.openDatabase) {
alert('Databases are not supported on this device. Sorry', 'error');
} else {
var db;
var version = '1.0';
var maxSize = 102400;
db = window.openDatabase(dbName, version, dbName, maxSize);
db.transaction(
function (tx) {
tx.executeSql(sqlStmt, [], function (tx, result) {
var schemanode = document.GetElementById('COMUNI');
schemanode.innerHTML = "";
dataset = result.rows;
for (var i = 0, item = null; i < dataset.length; i++) {
item = dataset.item(i);
var notediv = document.createElement('div');
notediv.innerHTML = 'Codice Provincia:' + item['PROVINCIA'] + 'Nome:' + item['NAME'];
schemanode.appendchild(notediv);
}
}
)
}
)
}
}
catch(ex)
{
alert(ex);
}
}
在此先感谢,西蒙