我有我的网站上这样的代码:
$.ajax({
type: "GET",
url: 'http://www.rp-online.de/cmlink/top-news-1.2513701',
cache : false,
dataType: "xml",
success: function(xml) {
$(xml).find('title').text();
console.log($(xml).text());
var as = $(xml).find('description').eq(1).text();
$('#av').append(as);
},
error:function (xhr, textStatus, thrownError){
console.log(textStatus);
$("#result").html(textStatus);
}
});
现在,此代码的工作,其用于从其他网站(RSS源)获取数据。
一切看起来不错,在桌面,IOS,但不是在Android上。 当我打开Chrome和移动仿真时,我在控制台中看到这个: parseerror。 有人知道解决方案吗? 谢谢。