IE9 Ajax成功但没有响应体

Jas*_*son 1 php ajax jquery internet-explorer-9

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

}
Run Code Online (Sandbox Code Playgroud)

并且只是为了确保它不是PHP:

<?php echo '<p>why won't this damn thing work in IE9</p>'; ?>
Run Code Online (Sandbox Code Playgroud)

有任何想法吗?

Sam*_*ook 6

似乎存在PARSE错误:

<?php echo '<p>why won't this damn thing work in IE9</p>'; ?>
Run Code Online (Sandbox Code Playgroud)

应该:

<?php echo '<p>why won\'t this damn thing work in IE9</p>'; ?>
Run Code Online (Sandbox Code Playgroud)

如果您关闭了错误,那么您将无法获得响应,因为页面将为空白.