【发布时间】:2015-06-29 11:41:06
【问题描述】:
我正在运行 chrome 43.0。在控制台中,我运行以下命令:
>> var db1 = openDatabase('testDB', '', 'my first database', 2 * 1024 * 1024, function(d){console.log(d);});
>> undefined
>> db1.transaction(function (tx) {
console.log(".....................");
console.log(tx.executeSql("INSERT INTO fileLog (fileName, bucketName) VALUES ('123','synergies')"));
});
>> undefined
.....................
undefined
问题是它没有在fileLog 表中插入任何数据。
【问题讨论】:
-
问题是没有错误回调。
标签: javascript sqlite google-chrome opendatabase