IE8無法用jQuery的ajax讀取XML 會噴一些奇奇怪怪的error 因此需要用最原始的IE AJAX去做... if( navigator.userAgent.indexOf("MSIE 8.0")>0 ){ // console.log("XD") var xmlhttp,xmlDoc; if (window.XMLHttpRequest) { xmlhttp=new XMLHttpRequest(); } else // IE 5/6 { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { // console.log(xmlhttp.readyState + " " + xmlhttp.status) if (xmlhttp.readyState==4 && xmlhttp.status==200) { var xml = xmlhttp.responseXML; // console.log(JSON.stringify(xml)) } } xmlhttp.open("GET",xmlurl,false); xmlhttp.send(); } else{ $.ajax({ url: xmlurl, type: 'get', dataType: 'text', //timeout: 1000, error: function(xml){ alert('xml error'); //當xml讀取失敗 // console.log(JSON.stringify(xml)) xmlData=$.parseXML(xml.responseText); }, success: function(xm...