错的一脸懵逼~哪错了啊
<script type="text/javascript">
var mychar=document.getElementsByTagName("li");
for(var i=0;i<mychar.length;i++){
var myN=mychar[i].nodeName;
var myV=mychar[i].nodeValue;
var myT=mychar[i].nodeType;
document.write("节点名称:"+myN+"<br/>"+"节点的值:"+myV+"<br/>"+"节点的类型:"+myT);}
}