怎么输出的结果是undefined?
var Nodediv=document.getElementsByTagName("div")[0].childNodes;
for(var i=0;i<Nodediv.length;i++)
{
document.write(i.nodeName+"<br>");
}
为啥是7个? undefined undefined undefined undefined undefined undefined undefined
var Nodediv=document.getElementsByTagName("div")[0].childNodes;
for(var i=0;i<Nodediv.length;i++)
{
document.write(i.nodeName+"<br>");
}
为啥是7个? undefined undefined undefined undefined undefined undefined undefined
2017-03-09
举报