jquery中的一段语句:.children(":not('h2:first')")是什么意思?已知first是一个css类(class)

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/28 06:46:28
jquery中的一段语句:.children(

jquery中的一段语句:.children(":not('h2:first')")是什么意思?已知first是一个css类(class)
jquery中的一段语句:.children(":not('h2:first')")是什么意思?
已知first是一个css类(class)

jquery中的一段语句:.children(":not('h2:first')")是什么意思?已知first是一个css类(class)
亲,你怎么已知first是一个css类捏?
jQuery的选择器使用中css类是'.'开头的,':'开头的条件选择.
:not() 是指 不包括
:first 是指第一个符合条件的元素
children是用来选择真子元素的
所以,合起来的意思是某元素的真子节点中,排除第一个元素意外的其他节点.例


Content


Test
Description
Test2

选择结果为

第二个