jquery序列化form
var pageValue=$("#input_iForm").formSerialize();
var reg = /\s/g; //去字符串所有空格
pageValue=pageValue.replace(reg, "");
var pici = $("#pici").val(); //批次
var remark = $("#remark").val(); //备注
var url="${pageContext.request.contextPath}/transfer/input_E2Ebatch_vrify.shtml?"+pageValue;
$.ajax({
type:"POST",
url:url,
dataType:"String",
async:false ,
success: function(result){
var resultStr = result.split(",");
var resultNo = resultStr[0];
var transSerial = resultStr[1];
if(resultNo == "success"){
$("#apreId").val(transSerial);
submits();
}else if(resultNo == "error"){
var resultNo = resultStr[0];
var errorMsg = resultStr[1];
var path = resultStr[2];
window.location = "${pageContext.request.contextPath}/transfer/jumpError.shtml?errorMsg= "+errorMsg+"&path="+path;
}else if(resultNo == "input"){
var resultNo = resultStr[0];
var successMsg = resultStr[1];
var path = resultStr[2];
window.location = "${pageContext.request.contextPath}/transfer/jumpSuccess.shtml?successMsg= "+successMsg+"&path="+path;
}
}
});