you can make a normal request on postman, but if you change it to ajax, you will report an error. Execute error
directly.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))
}
});
return error message:
{"readyState":0,"status":0,"statusText":"timeout"}
which great god has ever met, please have a look. Thank you here!