Jquery ajax没有在safari上工作,其他浏览器工作正常

时间:2013-11-27 17:01:40

标签: javascript jquery ajax safari

我正在尝试从Dropbox链接获取xml数据:

这是我正在尝试的

$.ajax({
    type: 'GET',
    url: 'https://dl.dropbox.com/s/6lor6dl0e9tc8vy/test10?dl=1',
    success: function(res) {
        console.log(res);
    },
    error: function(e)
    {
        console.log("error",e);
    }
});

这在所有浏览器中都能正常工作,但在safari中它的触发错误。不知道该怎么做。

0 个答案:

没有答案
相关问题