用jQuery的ajax跨域吧$.ajax( { type: "get", url: "http://localhost:4445/index.xml", cache: false, data: "", dataType: "xml", error: function() { alert("Error loading XML document"); }, success: function(result) {alert( $(result).find("root").eq(0).find("news").eq(0).attr("id") ); }} );读取另一个网站的xml<?xml ver |