我想從像web服務XML響應:jQuery的AJAX:獲取服務器的XML
function xmlparser() {
$.ajax({
type: 'GET',
url: URL,
dataType: 'application/xml',
success: function (xml) {
result = $(xml).find("post").text();
text = result;
return text;
},
error: function (xml) {
alert(xml);
alert(xml.status + ' ' + xml.statusText);
return false;
}
});
}
,但我總是得到一個誤差函數([目標對象],200 OK)
XML:
<posts><post>Adolf : get more minerals | </post></posts>
請幫我解決這個問題