我是IONIC的新手,想做一些數據庫操作。爲此,我選擇了sqlite
作爲數據庫。所以下面的教程Tutorial Link我寫我app.js
爲IONIC中的Sqlite顯示錯誤TypeError:n.sqlitePlugin未定義
db = $cordovaSQLite.openDB("nextflow.db"); //line 29
$cordovaSQLite.execute(db, "CREATE TABLE IF NOT EXISTS ta_sheets(id integer primary key AUTOINCREMENT, name varchar(255))");
$cordovaSQLite.execute(db, "CREATE TABLE IF NOT EXISTS tas(id int primary key, name varchar(255), description TEXT, amount DECIMAL(10,2), date DATE)");
但不知何故,它沒有創造任何數據庫和控制檯顯示錯誤TypeError: n.sqlitePlugin is undefined
.openDB() ng-cordova.min.js:9
<anonymous> app.js:29
.$get</t.ready/<() ionic.bundle.min.js:384
r() ionic.bundle.min.js:22
o() ionic.bundle.min.js:22
的哪些錯誤?我完全迷失了。任何幫助/提示高度讚賞。
這是從設備或瀏覽器的錯誤? – Akis