Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 jQuery 访问页面中具有某个类的所有锚点
例如。访问所有具有“粗体”类的锚点
我试过了
$('.bold');
但是我只需要选择主播,你能帮帮我吗?
先感谢您
使用以下选择器:
$('a.bold');
不是$('a.bold');你需要的吗?