总感觉有点儿问题
<!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 a=document.getElementsByTagName("li");
for(i=0;i<a.length;i++)
{
document.write("节点名称:"+a[i].nodeName+"<br/>");
document.write("节点值:"+a[i].nodeValue+"<br/>");
document.write("节点类型:"+a[i].nodeType+"<br/>");
}
</script>
</body>
</html>