是否可以使用jQuery选择所有<a>href 以“ABC”结尾的链接?
<a>
例如,如果我想找到这个链接<a href="http://server/page.aspx?id=ABC">
<a href="http://server/page.aspx?id=ABC">
$('a[href$="ABC"]')...
选择器文档可以在http://docs.jquery.com/Selectors找到
对于属性:
= is exactly equal != is not equal ^= is starts with $= is ends with *= is contains ~= is contains word |= is starts with prefix (i.e., |= "prefix" matches "prefix-...")