|
Model.prototype.button6Click = function(event){
//function SaveData() {
var BusinessData = this.comp("BusinessData");
// var moneyinput = this.comp("moneyinput").val();
BusinessData.newData({ // 创建新数据并保存到数据库
"defaultValues" : [ {
"serial_number3" : justep.UUID.createUUID(),
"payment_type" : "测试支付",
"other_t3" : new Date(), // time,
"money" : "1"
} ]
});
BusinessData.saveData();
};
看看哪里出问题了
|
|