gpt4 book ai didi

jquery - 用于选择名称不以 "something"开头/结尾的元素的选择器

转载 作者:行者123 更新时间:2023-12-03 22:39:06 26 4
gpt4 key购买 nike

在 jQuery 中,可以选择所有以“something”开头/结尾的元素。

 = is exactly equal
!= is not equal
^= starts with
$= ends with

是否可以选择所有不以“something”开头/结尾的元素?

最佳答案

使用:not选择器:

:not([id^=foo])

关于jquery - 用于选择名称不以 "something"开头/结尾的元素的选择器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11565499/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com