for(var i in li){ document.write(li[i].nodeName+""+li[i].nodeValue+""+li[i].nodeType+""); } 0 LI 0 null 0 1 1 LI 1 null 1 1 2 LI 2 null 2 1 length undefineditem undefineditem undefineditem undefinednamedItem undefinednamedItem undefinednamedItem undefined 多了很多东西怎么回事?
for in循环是python里的吧
http://www.imooc.com/qadetail/206615