JQUERY如何获取超链接文本

<a href="">测试 </a>
用jquery如果表达点击得到"测试"这个值

  • csharper - 1年前

    $("a").click(function(){ alert($(this).html()) });