$.ajax(
{
url: "/merchant/admin/addcommodity",
type: "POST",
data: formData,
contentType: false,
processData: false,
cache: false,
success: function(res)
{ if(res.status == 0)
{
alert("發生錯誤: "+res.info);
} if(res.status == 1)
{
alert("導入成功: "+res.info);
reload();
}
}
});
return false;return false 是干什么用的?
為什么ajax代碼塊外面要跟一個 return false ?
至尊寶的傳說
2018-07-04 14:30:04