//防止获取服务器端的XML,在IE中无法解析 function convertXml(xmlData) { var xml; if( typeof xmlData == "string") { xml = new ActiveXObject("Microsoft.XMLDOM"); xml.async = false; xml.loadXML(xmlData); } else { xml = xmlData; } return xml; }原文链接:https://www.f2er.com/xml/297506.html