其他分享
首页 > 其他分享> > jQuery的选择器

jQuery的选择器

作者:互联网

向下遍历

this元素的直接子元素选择器

jQuery(this).children('.race-day-info')

向上遍历

水平遍历

(在 DOM 树中沿着同胞元素向后遍历,而不是向前)

this元素的兄弟选择器

jQuery(this).siblings('li')

过滤

返回类不是old和new的所有元素的所有元素

jQuery('#datetimepicker .day').not('.old').not('new')

标签:jQuery,返回,所有,元素,同胞,选择器
来源: https://blog.csdn.net/qq_35752802/article/details/100534156