$.ajax({
type: "POST",
url: "/demand/checkOrder.do",
data: dataCheck,
datatype: "json",
success: function (dataCheck) {
dataCheck = $.parseJSON(dataCheck);
if (dataCheck.result === true) {
window.location.href = cartUrl + "/cart/inquiryQuickOrder.do?" + data;
} else {
$("#messageModalSpan").html(dataCheck.message);
$("#messageModal").modal();
return;
}
}
});
JS中AJAX用于校验
最新推荐文章于 2022-03-07 09:57:27 发布