我有一个简单的ajax请求,它可以在所有现代浏览器中工作(当然,IE9除外)。在IE9中,响应返回为200,success函数触发,但没有返回数据。
下面是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>'; ?>有什么想法吗?
发布于 2012-11-22 03:21:33
似乎有一个解析错误:
<?php echo '<p>why won't this damn thing work in IE9</p>'; ?>应该是:
<?php echo '<p>why won\'t this damn thing work in IE9</p>'; ?>如果你关闭了你的错误,你将不会得到响应,因为页面将是空白的。
https://stackoverflow.com/questions/13500497
复制相似问题