|
使用bassdata。
Model.prototype.regBtnClick = function(event){
debugger;
this.comp("userZhuceData").newData({
"defaultValues":[{
"SpID":justep.UUID.createUUID(),
"UserName":"18895096860",
"UserPswdOne":"gw19800908",
"UserPswdTwo":"gw19800908",
"UserYzMa":"2123",
"UserPhone":"18895096860",
"UserRegTime":new Date(),
/*"onError" : function(e){
console.log('失败',e);
},
"onSuccess" : function (e){
console.log('成功',e);
}*/
}]
});
//this.comp("userZhuceData").setValue("UserName","18895096860");
this.comp("userZhuceData").saveData({
"onSuccess":function(event){
event.source.refreshData({
"async":true
});
}
});
alert("why?");
}; |
|