|
http://doc.wex5.com/cordova-plugin-sqlite/ 些案例没有删除修改i,我自己加了一下怎么也不对呀
麻烦高手给改一下 谢谢!
Model.prototype.delClick = function(event) {
this.db.transaction(function(tx) {
tx.executeSql("DELETE FROM test_table WHERE id=1",[], function(tx, res) {
}, function(e) {
alert("ERROR: " + e.message);
});
});
};
Model.prototype.modyClick = function(event){
this.db.transaction(function(tx) {
tx.updateSql = ("UPDATE test_table SET updateValues.join, WHERE id=1", [ 6,"test2", 100 ], function(tx, res) {
}, function(e) {
alert("ERROR: " + e.message);
});
});
};//modfy |
|