在fireFox浏览器中的FireBug的控制台输入
document.getElementsByTagName('*').length
查询网页中DOM元素的总数量
原文:http://blog.csdn.net/laijieyao/article/details/42677955