document.body is null 当我们在head中的JavaScript脚本依赖于document.body时,就会出现document.body.null的情况! 解决办法:将脚本放在body元素的最下方!