我無法讓AJAX在IE10中工作。無論我嘗試多少次/方式/框架,都沒有用。它總是返回一個空字符串。無法發佈到IE10的AJAX
<html>
<head>
<script type="text/javascript" src="jquery-1-9-1.js"></script>
</head>
<body>
<br/>
<a onclick="doit()">go</a>
<script>
function doit()
{
var myData = { "key": "value" };
$.ajax({
url: "myhandlepage.php",
data: myData,
dataType: 'json',
type: 'POST',
contentType: 'application/x-www-form-urlencoded',
success: function (data) { alert("OK = " + data.eric); },
error: function (data, status) { alert("FAILED:" + status); }
});
}
</script>
</body>
</html>
不,補充說不能解決它。 – 2013-02-12 01:02:51
你使用什麼操作系統版本,Win 7或8? – 2013-02-12 01:03:40
我正在使用Win7。 – 2013-02-12 01:12:48