jQuery.ajax({
type : 'POST',
url : "${base}/reservation/create",
//contentType : "application/json",
data : jQuery("#reservation_form").serialize(),
//data: {"method":"measuring"},
complete: function(XMLHttpRequest, textStatus){
//HideLoading();
},
success: function(data, textStatus) {
if (data) {
if (data.success == "true") {
alert(data.info);
document.location.href = "${base}/reservation/list";
} else {
alert(data.info);
}
}
},
error: function(){
//出错处理
}
})
转载于:https://my.oschina.net/tiancai/blog/86105