javascript - SQLite plugin Cordova basic code -
i'm new cordova & sqlite wrote code , can't figure out wrong it? suggestions? following output javascript debugger: click see error messages <script type="text/javascript"> // wait cordova load document.addeventlistener('deviceready', ondeviceready, false); var output = document.getelementbyid('outputfield'); // cordova ready function ondeviceready() { window.sqliteplugin.opendatabase({ name: 'test.db', location: 2 }, function (db) { output.innerhtml += '</br> - database created/opened'; db.transaction(function (tx) { tx.executesql(tx, "create table localstorage2 if not exists (key unique, value)"); }); output.innerhtml += '</br> - table localstorage2 created'; storevalue(db, 'localstorage2', 'testkey', 'testvalue'); output.innerhtml += '...