JQuery选择器要排除某些元素?

时间:2022-05-20 21:26:35

I need jquery to pull everything on a webpage containing the @ sign but not containing a certain email address.

我需要jquery来拉取包含@符号但不包含某个电子邮件地址的网页上的所有内容。

So what I have is that is should contain the element

所以我拥有的是应该包含元素

*:contains("@")

and then the actions that it takes should be to extract element contents

然后它采取的行动应该是提取元素内容

a[href^="mailto:"]

I am lost how to input not to pull anything with the specific email address. Thanks!!

我迷失了如何输入不要用特定的电子邮件地址拉任何东西。谢谢!!

1 个解决方案

#1


You can try adding this to your selector:

您可以尝试将其添加到选择器:

:not(:contains("blah@blah.com"))')

#1


You can try adding this to your selector:

您可以尝试将其添加到选择器:

:not(:contains("blah@blah.com"))')