求大神给看看到底是哪里错了 本人实在做不到了啊~~~~
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>节点属性</title>
</head>
<body>
<ul>
<li>javascript</li>
<li>HTML/CSS</li>
<li>jQuery</li>
</ul>
<script type="text/javascript">
var node=getElementsByTagName("li");
for(var i=0;i<node.length;i++){
var nN=node[i].nodeName;
var nV=node[i].nodeValue;
var nT=node[i].nodeTpye;
document.write("节点的名称:"+nN+"节点的值:"+nV+"节点的类型:"+nT)
}
</script>
</body>
</html>