87,991
社区成员
发帖
与我相关
我的任务
分享
<script>
window.onload = function(){
var xml = new ActiveXObject("Msxml2.DOMDocument")
xml.loadXML("<a href=\"www.test.com\"></a>");
node = xml.selectSingleNode("//a/@href");
alert(node.nodeType); //2
}
</script>