我有以下标记。我想根据 URL 的部分匹配锚标记。
其实我有如下标记。而且我知道排序字段名称。我想根据字段名称选择锚点,例如。sort:resource_locator
基于此,我想选择第一个锚标记,并且我想根据方向给类提供一个小up/down
箭头。
<th><a href="/sme_leads/index/page:1/sort:resource_locator/direction:asc">Resource Locator</a></th>
<th><a href="/sme_leads/index/page:1/sort:business_name/direction:asc">Business Name</a></th>
我想知道如何根据sort:resource_locator
信息选择锚标签。
我分别知道$ and ^
结束和开始。