比如:现在有个html:
<html>
  <a herf="www.xxx.com">要得到的文本</a>
</html>我现在通过document.onclick得到 node "a" 对象targetNode,我怎么有targetNode来得到 a 的文本内容,即“要得到的文本”和herf的内容?targetNode有text方法吗?