为啥ajax请求 的 url 是一个html?这个请求的数据是发送给谁了呢?
$.ajax({
type:"post",
async:false, //这句代表的是同步和异步 true 是异步 false 是同步 ,当false时 执行完ajax 才执行后面的JS
cache:false,
data:{productId:productId,shopProductId:shopProId,bleanStr:bleanStr,supplyId:supplyId,supplyType:supplyType,deliverType:deliverType,
priceretailonlines:priceretailonlines,areaIds:areaIds,areaLevels:areaLevels,stockNumber:sum,
tempNumber:tempSum,isCheckChina:isCheckChina,areaNames:JSON.stringify(areaNames)},
url:contextPath+'/frontseller/productRelease/directional/checkSave.html',
dataType:"json",
success : function(json) {
if(json.alertStr != '' && json.alertStr != 'undefined'){
$.unblockUI();
alert_one(json.alertStr);
for(var i = 0; i < str2.length; i++){
str2[i].value="";
}
return ;
}else{
});
document.getElementById("pbq").action=contextPath+"/frontseller/productRelease/directional/save.html";
document.getElementById("pbq").submit();
}
},
error:function(request,text,error){
alert_one(text);
}
});