日期:2014-05-16  浏览次数:20411 次

document.firstChild.firstChild
var headNode = document.firstChild.firstChild;
alert(headNode);
为什么为null,不是应该是head节点吗?
求指点

------解决方案--------------------
因为firstChild是<!DOCTYPE html>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">