为什么我的代码显示不了document.write(“77”),后面的节点也显示不了;
<!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>