9-7怎么节点名称,节点属性以及节点类型都不能输出
<!DOCTYPE HTML>
<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=document.getElementsByTagName("li");
for(var i=0;i>Node.length;i++){
var NodeNam=Node[i].nodeName;
console.log(NodeNam);
var NodeVal=Node[i].nodeValue;
var NodeType=Node[i].nodeType;
document.write("nodeName节点名称:"+NodeNam+"<br/>");
document.write("nodeName节点的值:"+NodeVal+"<br/>");
document.write("nodeName节点类型:"+NodeType+"<br/>");
}
</script>
</body>
</html>