jquery.min.js?v=2.1.4:4 Uncaught TypeError: (b.contentType || "").indexOf is not a function
阿新 • • 發佈:2018-01-29
前臺運行 gpo 前臺 add cati json log ont fun
前臺運行PUT時出現錯誤:jquery.min.js?v=2.1.4:4 Uncaught TypeError: (b.contentType || "").indexOf is not a function;
最後檢查少了
原代碼:
$.ajax({
type: ‘PUT‘,
data: JSON.stringify(addData),
contentType:"application/json",
url: addr + "/information/update",
contentType: function () {
layerDialog = layer.msg(‘正在修改...‘,{
icon: 16, shade:0.5
});
html = "";
},
----------
改後代碼:
type: ‘PUT‘,
data: JSON.stringify(addData),
contentType:"application/json",
url: addr + "/information/update",
beforeSend: function () {
layerDialog = layer.msg(‘正在修改...‘,{
icon: 16, shade:0.5
});
html = "";
},
----------------
jquery.min.js?v=2.1.4:4 Uncaught TypeError: (b.contentType || "").indexOf is not a function