案例:HTML DOM案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<!DOCTYPE html>
2
<html>
3
<body>
4
5
<p id="intro">Hello World!</p>
6
7
<script>
8
x=document.getElementById("intro");
9
document.write(x.firstChild.nodeValue);
10
</script>
11
12
</body>
13
</html>
14