var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
// xmlDoc.loadXML(xmlHttp.responseText);
xmlDoc = xmlHttp.responseXML;
var i = xmlDoc.getElementsByTagName("set")[0].firstChild.nodeValue;
alert(i);
}firstChild取出是object,但是firstChild.nodeValue取出是null,请教怎么回事?<?xml version="1.0" encoding="gb2312"?>
<set>
<aa>Hello</aa>
<bb>123456</bb>
</set>
// xmlDoc.loadXML(xmlHttp.responseText);
xmlDoc = xmlHttp.responseXML;
var i = xmlDoc.getElementsByTagName("set")[0].firstChild.nodeValue;
alert(i);
}firstChild取出是object,但是firstChild.nodeValue取出是null,请教怎么回事?<?xml version="1.0" encoding="gb2312"?>
<set>
<aa>Hello</aa>
<bb>123456</bb>
</set>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货