将A链接定义一个Id或name,实现方式差不多:<a id="hrA" href="a.html">abc </a> 在javascript方法里用document.getElementById("hrA").outerText即可得到。