gpt4 book ai didi

php - IE9 Ajax成功但无响应体

转载 作者:行者123 更新时间:2023-12-01 06:36:44 24 4
gpt4 key购买 nike

我有一个简单的 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>'; ?>

有什么想法吗?

最佳答案

似乎存在解析错误:

<?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>'; ?>

如果您关闭了错误,那么您将不会收到响应,因为页面将为空白。

关于php - IE9 Ajax成功但无响应体,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13500497/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com