<script type="text/javascript">
var a = document.getElementByTagName('div');
var b =a[0].childNodes;
for(var i = 0;i<b.length;i++){
document.write(b[i]+b[i].nodeType);
}
</script>
b[i].nodeType也输出不了
var a = document.getElementByTagName('div');少个s,应该是
var a = document.getElementsByTagName('div');
getElementByTagName书写错误,还是不仔细,打扰了