一些Android手机获取Window没有方法openDatabase

时间:2015-06-11 08:51:34

标签: javascript android sqlite cordova

我在某些Android手机中使用Window没有方法openDatabase,如HTC 4.3版。

我开发了应用程序,但面对上述问题并非仅限于某些设备的所有设备。

function CALL_DB() {
try {
        console.log("call_db");
        var db = window.openDatabase("Database", "1.0", "Cordova Demo", 200000);
        db.transaction(populateDB, errorCB, successCB);
    } catch (err) {
        console.log("call_db Error processing SQL: " + err);
    }
}

CALL_DB函数我调用了deviceready事件。

任何帮助将不胜感激。

0 个答案:

没有答案