2019独角兽企业重金招聘Python工程师标准>>>

ajax post 请求 一直提示 404 not found textStatus error

var dataParams = {schoolSupplierIds:schoolSupplierIds}; $.ajax({ type: "POST", url: "/menuManage/caterDishes.htm", data : dataParams, dataType: "json", async: false, success: function (rep) { }, error:function(XMLHttpRequest, textStatus, errorThrown){ console.log("textStatus"+textStatus); console.log(XMLHttpRequest.status); console.log(XMLHttpRequest.readyState); console.log(XMLHttpRequest.responseText); } });

不存在跨域的情况 但是一直报错 断点后台没有任何错误 返回数据就直接404 。

原因:后台数据转回的json格式数据有误。

更多推荐

ajax 提示404 not found,ajax post 请求 一直提示 404 not found textStatus error