jquery 不等于
时间: 2023-08-29 14:09:20 浏览: 83
在jQuery中,使用.not()方法可以选择与指定条件不匹配的元素。在给定的代码片段中,使用.not('[data-media^="FB"]')选择了所有data-media属性不以"FB"开头的li元素,并对它们进行了隐藏操作。这意味着只有data-media属性以"FB"开头的li元素会被显示出来。这是通过选择器中的属性选择器实现的,其中^表示选择以指定的值开头的属性值。<em>1</em><em>2</em><em>3</em>
#### 引用[.reference_title]
- *1* [jquery选择器通配符_jQuery选择器不等于通配符](https://blog.csdn.net/dingshi7798/article/details/107267307)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}} ] [.reference_item]
- *2* [jQuery 属性选择器 属性不等于某个值的](https://blog.csdn.net/moamao_jishuyuan/article/details/121009443)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}} ] [.reference_item]
- *3* [jquery取input不等于某class](https://blog.csdn.net/ademoa/article/details/80352257)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}} ] [.reference_item]
[ .reference_list ]
阅读全文