在 ubuntu 和 chromium 浏览器上测试我的应用程序时,一切正常,但是当移动到使用 debian 和相同 chromium 浏览器的生产机器时,我总是得到一个 ajax 错误 0。
- jQuery 版本 1.7.2
- jQuery.mobile 版本 1.1.1
- Tomcat服务器
要求:
$.ajax({
type: 'POST',
url: "http://localhost:8080/rest/setvalue/1234",
dataType: "json",
success: function(objResponse) {
showMessage("Done");
},
error: errorHandler
});
尽管服务器正确处理了请求,但在生产机器上调用了 errorHandler!
感谢您的任何想法...
坦率
- - - 添加 - - -
显示代码的警报
function errorHandler(xhr, ajaxOptions, thrownError) {
showAlert("Error", "Error: " + xhr.status + "\n" +
"Message: " + xhr.statusText + "\n" +
"Response: " + xhr.responseText + "\n" + thrownError); }
是:
错误:0
消息:错误
回复: