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');
}
});
});
});