更新时间:2022-03-25 00:33:55
Yes, you can use jQuery's attribute selector for that.
var linksToGoogle = $('a[href="http://google.com"]');
或者,如果您的兴趣是使用某个网址链接开始使用属性开始选择器:
Alternatively, if your interest is rather links starting with a certain URL, use the attribute-starts-with selector:
var allLinksToGoogle = $('a[href^="http://google.com"]');