<script type="text/javascript">
var x=document.getElementsByTagName("div")[0].childNodes;
for(var i=0,i<x.length,i++){
document.write("节点属性"+x[i].nodeType);
}
</script>
for(var i=0,i<x.length,i++) -> for(var i=0;i<x.length;i++) //for循环里面用 “;”隔开