<!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> <p>随意调</p> <script type="text/javascript"> var li_name=document.getElementsByTagName("li");for(var i=0;i<li_name.length;i++){ var er=li_name[i].innerHTML; console.log("er");console.log("er.nodeName");console.log("er.nodeType"); } </script></body></html>
添加回答
举报
0/150
提交
取消