<div id="myDiv"><p>p标签</p></div>
alert(document.getElementById("myDiv").childNodes[0]); //通过childNodes这种方式来获取节点