在postman上可以正常请求,换成ajax就报错了,直接执行error
var params = { userNameId: "cni23026672" } $.ajax({ type:"post", url:serviceUrl+getReleaseList+"?pageNum=" + pageNum + "&pageSize=10", async:true, contentType: "application/json; charset=utf-8", timeout: 10000, data: params, dataType: "json", success: function(data) { console.log(JSON.stringify(data)) }, error: function(err) { console.log(JSON.stringify(err)) } });
返回错误信息:
{"readyState":0,"status":0,"statusText":"timeout"}
哪位大神遇到过,麻烦你看看。在此表示感谢!
慕田峪4524236
交互式爱情
相关分类