{
"ServerUnavailable":"true",
"IssueType":"Maintenance",
"ErrorMessage":"Servers are currently down for maintanance, please try again later"
}
,并张贴到我的服务器。
从我的应用程序我想显示关于服务器停机时间的消息。
当我通过谷歌浏览器浏览到我的服务器我看到:
好了,一切都很酷。
但是当我做从我的应用程序一个Ajax请求:
$.ajax({
// bla bola bla
})
.done(function (response, textStatus, jqXHR) {
// bla bola bla
})
.fail(function (XMLHttpRequest, textStatus, errorThrown) {
// HERE I WANT TO DISPLAY A MESSAGE
});
没有定义的所有属性XMLHttpRequest对象。 我已经尝试了所有:
响应 responseBody 的responseType responseXML的 responseJSON 状态 状态文本
在哪里可以找到的响应,我在浏览器中看到了什么?或者我错过了什么?
2016-05-09
Cheese
+0
请问,您能否提供请求参数?特别确保您尝试检索的URL是正确的。 –