問題:
用Ajax请求返回的xml ,一般浏览器都能用 responseXML.documentElement.selectNodes("XXX") 去检索需要的节点,但是IE升级到10之后对象不支持selectNodes()属性或者方法!
解決方法:
发送Ajax请求之前,加一句:
xmlHttp.open(....);
try{
xmlHttp.responseType("msxml-document");
}catch(e){
}
xmlHttp.send(null);
用Ajax请求返回的xml ,一般浏览器都能用 responseXML.documentElement.selectNodes("XXX") 去检索需要的节点,但是IE升级到10之后对象不支持selectNodes()属性或者方法!
解決方法:
发送Ajax请求之前,加一句:
xmlHttp.open(....);
try{
xmlHttp.responseType("msxml-document");
}catch(e){
}
xmlHttp.send(null);