phonegap应用程序(sqlite)中的cordova.exec



我通过将sqlite插件更新到最新版本,将phonegap应用程序升级到了3.0版本(https://github.com/j3k0/PhoneGap-SQLitePlugin-iOS)

通过运行即此脚本(以前运行时没有问题)

function onDeviceReady() {    
    var db = window.sqlitePlugin.openDatabase(shortName, version, displayName,maxSize);
}

我在我的控制台上得到了这个日志:

The old format of this exec call has been removed (deprecated since 2.1). Change to: cordova.exec(null, null, "SQLitePlugin",...

没有任何错误,没有任何警告,等等,只有每个SQL语句的这些信息。我该如何解决这个问题?

看起来您需要更新SQLitePlugin.js 中的第26行

更改自:

cordova.exec(success, error, "SQLitePlugin", method, [options]);

至:

cordova.exec(null, null, "SQLitePlugin", method, [options]);

最新更新