萌新求教各位大神,问题:无法判断写的是否正确
<!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 lis=document.getElementsByTagName("li");
for (lis=0; lis<lis.length;lis++;)
{
document.write("lis[lis].nodeName");
document.write("lis[lis].nodeValue");
document.write("lis[lis].nodeType");
}
</script>
</body>
</html>