我有一个演示使用jquery ajax后。它可以在Chrome和Firefox上运行,但不能在IE10上运行。这是我的演示:http://jsfiddle.net/44T5D/。请帮我解决这个问题。感谢您的帮助。Ajax无法在IE10上工作
代码:
$(function() {
$('.document').on('click', '.ajax', function(e) {
e.preventDefault();
// ajax request
$.ajax({
async: true,
cache: false,
type: 'post',
url: '/echo/html/',
data: {
html: '<p>This is echoed the response in HTML format</p>',
delay: 1
},
dataType: 'html',
beforeSend: function() {
console.log('Fired prior to the request');
},
success: function(data) {
console.log('Fired when the request is successfull');
$('.document').append(data);
alert(data);
},
complete: function() {
console.log('Fired when the request is complete');
}
});
});
});
你有任何加载项,扩展或其他影响IE10的东西呢? – 2013-03-25 03:35:40
我看到你的jsfiddle使用jQuery 1.7.2。你用1.9.1测试过吗? – 2013-03-25 03:36:42
我不知道你说的究竟是什么附加组件或扩展。但我昨天刚刚安装了IE10,只有IE10,没有任何附件,扩展。你能告诉我更多关于这个错误吗? – user1967247 2013-03-25 03:43:10