有一个特定的类?
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.
这应该这样做
$('p>a.foo_blog').remove();
$("a.foo_blog, p.foo_blog").remove();