这里是我的jQuery AJAX方法,它只适用于Ie,但不适用于Chrome或Firefox。我的代码是Jquery AJAX方法只适用于IE浏览器
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js?ver=1.3.2">
</script>
<script>
$(document).ready(function() {
$("button").click(function() {
$.ajax({
url: "http://50.116.19.49/rest/user.json",
success: function(result) {
$("div").text(result);
}
});
});
});
</script>
</head>
<body>
<button>Get JSON data</button>
<div></div>
</body>
</html>
服务器文件是否在相同的IP? – Sutha
您是否尝试过更新版本的jQuery?任何控制台错误? – Sparky
这两个文件都在不同的ips –