$.ajax({
type: "POST",
url: getRootPath() + "safeguardFacilitiesArmory/addOrEdit.do",
data: data, //必须是字符串
dataType: "json",
headers:{"content-type":"application/json;charset=utf-8"}, //请求头类型
success: function (res) {
if (res.rtnCode == 0) {
return;
}
}
});
jq ajax设置请求头类型
最新推荐文章于 2024-07-26 03:29:01 发布