不知道为什么提示对了,但是看不到结果结果
<!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 na=document.getElementsByTagName("li");
for(var i=0;i<3;i++)
{ document.write("nodeName"+na[i].nodeName+ <br/>);
document.write("nodeValue"+na[i].nodeValue+ <br/>);
document.write("nodeType"+na[i].nodeType+<br/>);
}
</script>
</body>
</html>