我正在使用这样的 jquery ajax 调用:
$.ajax({
url: WEBSERVICE_URL,
type: "GET",
dataType: "application/json; charset=utf-8",
username: "admin", // Most SAP web services require credentials
password: "admin",
processData: false,
contentType: "application/json",
success: function() {
alert("success");
},
error: function() {
alert("ERROR");
},
});
呼叫仍然不会转到 Web 服务。每次我收到错误警报。有人可以帮我解决这个问题吗?