var a = document.getElementsByTagName("div")[0].chlidNodes;
for(var i=0;i<x.length;i++)
{
document.write("第"+(i+1)+"节点类型"+a[i].nodeType+"<br />");
document.write("第"+(i+1)+"节点值"+a[i].nodeValue+"<br />");
document.write("第"+(i+1)+"节点名"+a[i].nodeName+"<br />");
}
我的哪里错了嘛?
chlidNodes 拼错了
x是什么鬼?