81,092
社区成员
发帖
与我相关
我的任务
分享
/**
* 存放业务数据
*/
protected Map<String, Object> serviceData = new HashMap<String, Object>();
/**
* 存放指令数据
*/
protected Map<String, Object> opData = new HashMap<String, Object>();
var pageMetaData = {
ServiceClassName:"service.test.userService",//业务层对应的服务类
DaoClassName:"dao.test.userMapper",//数据层对应的操作类
EchoCheck: "",
opType:"save",
handerName:"UserHander"
};
var bizdate = form.serialize();
var operationDate = pageMetaData;
function ajaxRequest(url,bizdate,
operationDate ,callbackFun) {
$.ajax({
url : url,
// 数据发送方式
type : "post",
// 接受数据格式
dataType : "json",
// 要传递的数据
data :{'bizdate':bizdate,'oprationDate':oprationDate},
// 回传函数
//success : function(result) {
success : function() {
alert('请求成功');
},
//失败
failure : function(result) {
}
});
}
bizdate user.GuId=&user.userName=543&user.age=234
operationDate[DaoClassName] com.yum.boh.fund.dao.test.userMapper
operationDate[EchoCheck]
operationDate[opType] Save
operationDate[ServiceClassName] com.yum.boh.fund.service.test.userService