<!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">
document.write("77");
var a=document.getElementsByTagName("li");
for(int i;i<a.length;i++){
document.write("节点名称:"+a[i].nodeName+"节点的值:"a[i].nodeValue+"节点的类型:"+a[i].nodeType);
}
</script>
</body>
</html>
for(var i=0;i<x.length;i++){
节点的值:+"a[i].nodeValue+,漏了+