问一下为什么输不出东西
<!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 data=document.getElementsByTagName("li");
for(var i=0,i<data.length;i++){
document.write("第"+i+"个节点的名称是"+data[i].nodeName+"<br/>");
document.write("第"+i+"个节点的值是"+data[i].nodeValue+"<br/>");
document.write("第"+i+"个节点的类型是"+data[i].nodeType+"<br/>");
}
</script>
</body>
</html>