我想检查下面显示的url是否可访问。 在Firefox上,当页面没有运行时,请求失败,但也没有显示错误。 在Internet Explorer上总是显示“成功”。我如何解决这个问题,以便IE也支持?为什么错误无法显示?提前致谢!jQuery ajax请求在Firefox上成功,但在Internet Explorer上不成功
var link = "http://localhost:8387/nscalemc/";
$.ajax({
type: "GET",
url: link,
crossDomain: true,
dataType: "script",
success: function() {
alert("success")
},
error: function() {
alert("error");
}
})
感谢您的回答,但这似乎并不是解决方案。无论如何,清理缓存后仍显示成功。 – P4tR 2012-04-12 10:27:32