0

我有以下代码片段,它在 Internet Explorer 中不起作用,从 Web 工具(F12)它不会在控制台上显示任何错误,就像 IE 一样,我通过 get 检索的 XML 是空的。有什么提示吗?

$.get('http://x.x.x./xxx.aspx?param=' + par, function(data) {
    $(data).find('item').each(function(){
        //for some reason IE never enter this each cycle
        alert("that alert works with Chrome and Firefox but not with IE...")
    }
}

编辑:让您知道此代码片段在 SharePoint WSS3 内的 ASPX 页面上运行。IE 在 IE10 兼容性视图中以 IE 5 Quirks 作为文档模式启动。我也在使用 Jquery 1.9.0。

4

0 回答 0