我有一个简单的 ajax 请求,它适用于除 IE9 之外的所有现代浏览器(当然)。在 IE9 中,响应返回 200,成功函数触发,但没有返回数据。
这是js:
function getMapPins(section){
$('.spinnerBG').fadeIn('fast');
$.ajax({
type: 'POST',
url: '/ourprojects_ajax.html',
data: {'map_section':section},
cache:false,
success: function(data){
//alert(data);
$('#mapPins').append(data);
createPins(section);
}
});
}
只是为了确保它不是 PHP:
<?php echo '<p>why won't this damn thing work in IE9</p>'; ?>
有任何想法吗?