0
if (xmlRequest.status == 200)
if (xmlRequest.responseXML)
var xmlElement = xmlRequest.responseXML.getElementsByTagName("item");
rest of codes
解析工作除internet explorer外。IE響應XML getelementsbytagname
當xmlElement的返回值爲空時,它應該是什麼?
var xmlElement = xmlRequest.responseXML ...?
因爲IE不執行'responseXML'? – Raynos 2012-01-15 14:40:30
@Raynos這是不正確的。我會說它不支持'responseXML'返回的對象中的'getElementsByTagName'。 – duri 2012-01-15 14:41:02
@duri也許他需要'responseXML.documentElement.getElementsByTagName'? – Raynos 2012-01-15 14:52:52