<html>
<head>
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8" />
<title>树!树!到处都是树!</title>
<script>
var header=document.getElementsById("header");
alert(header.nodeType);
//alert(header.fristChild.nodeValue);
</script>
</head>
<body>
<h1 id="header">树!树!到处都是树!</h1>
<p>HTML那层层嵌套的代码就像一棵<em>树</em>一样!</p>
<div>
一层一层的树<img src="../images/stach_heap.gif" /> 
</div>
</body>
</html>本来返回值应该是1,但我的什么都没有,就没有alert那个弹窗。是神马问题啊