- //filter匹配元素的过滤器过滤后
- //只剩下那些与给定的选择器匹配的部分。在这种情况下,
- //查询删除了任何没(:not)有(:has)
- //包含class为“selected”(.selected)的子节点。
- .filter(":not(:has(.selected))")
- //该片段来自于http://www.codesnippet.cn/detail/171020136476.html
来源: http://www.codesnippet.cn/detail/171020136476.html