求老师解答这可问题,我这里是那里错了
<div>
javascript
<p>javascript</p>
<div>jQury</div>
<h5>PHP</h5>
</div>
<script>
var child=document.getElementsByTagName("div")[0].childnodes;
for(i=0;i<child.length;i++){
document.write("第"+(i+1)+"个节点名"+"<br/>"+"节点名:"+child[i].nodeName+"<br/>"+"节点类型:"+child[i].nodeType+"<br/>"+"节点的值:"+child[i].nodeValue+"<br/>");
}
</script>