function add(){
if (validWare()) {
alert(1)
$.ajax({
type : "POST",
url : "$rc.contextPath/submit_deal_item.do",
data : decodeURIComponent($("#addUserForm").serialize(),true),
dataType : "json",
async : true,
success : function(msg) {
if (msg.code == 200) {
//alert(msg.data.dealId)
window.location="$rc.contextPath/deal_success.do?dealId="+msg.data.dealId;
} else {
}
}
});
}
}
执行到alert就不往下执行了, debug不报错。