weixin_33681778 2014-12-13 04:05 采纳率: 0%
浏览 16

Ajax XML请求失败

I'm trying to load a remote xml file so I can parse it and return some results, but this Ajax GET request keeps failing. See it on a jsfiddle here. Note: this also fails if you use dataType: 'xml'

$(function() {
    $.ajax({
        type: "GET",
        url: "http://ultrasoundoftheweek.com/wp-includes/wlwmanifest.xml",
        dataType: 'text',
        cache:'false',
        success: function(data) {
            alert("yes");
        },
        error: function(xhr, status) {
            alert("no");
        }
    });
});
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 无法输出helloworld
    • ¥15 高通uboot 打印ubi init err 22
    • ¥20 PDF元数据中的XMP媒体管理属性
    • ¥15 R语言中lasso回归报错
    • ¥15 网站突然不能访问了,上午还好好的
    • ¥15 有没有dl可以帮弄”我去图书馆”秒选道具和积分
    • ¥15 semrush,SEO,内嵌网站,api
    • ¥15 Stata:为什么reghdfe后的因变量没有被发现识别啊
    • ¥15 振荡电路,ADS仿真
    • ¥15 关于#c语言#的问题,请各位专家解答!