在postman上可以正常请求,换成ajax就报错了,直接执行errorvar 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"}哪位大神遇到过,麻烦你看看。在此表示感谢!
添加回答
举报
0/150
提交
取消