我仍然尝试从我的TD锚点中获取href链接,但我无法做到这一点。
总是我得到未定义的结果。
我希望返回:/ Admin / Log / Profile /
console.log($(".clickable-row").find("a").attr("href"))
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<table>
<tbody>
<tr class="userListResult">
<td class="clickable-row"><a href="/Admin/Log/Profile/">abc</a></td>
</tr>
</tbody>
</table>