【发布时间】:2013-03-25 03:30:53
【问题描述】:
我有一个使用 jquery ajax 发布的演示。它可以在 Chrome 和 Firefox 上运行,但不能在 IE10 上运行。这是我的演示:http://jsfiddle.net/44T5D/。请帮我解决这个问题。谢谢你的帮助。
代码:
$(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 的东西?
-
我看到你的 jsfiddle 使用 jQuery 1.7.2。你用 1.9.1 测试过吗?
-
我不知道你在说什么附加组件或扩展。但是我昨天刚装了IE10,而且只有IE10,没有任何插件,扩展。你能告诉我更多关于这个错误的信息吗?
-
我问这个问题是因为卸载一些插件解决了这个问题:stackoverflow.com/questions/13101729/…
-
我无法重现此问题,因为我对 Windows 过敏。只是在这里抓住稻草。