0

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

通过运行即这个脚本(之前运行没有问题)

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 语句的这些信息。我该如何解决这个问题?

4

1 回答 1

3

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

更改自:

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

到:

cordova.exec(null, null, "SQLitePlugin", method, [options]);
于 2013-08-15T21:49:42.860 回答