jQuery selectors can be grouped into the following categories:

来源:互联网 发布:python 爬虫 开源框架 编辑:程序博客网 时间:2024/06/15 01:35

jQuery selectors can be grouped into the following categories:

Basic selector: Selects elements based on basic criteria such as ID, CSS class, and
HTML tag name.
Basic filter: Filters an element set based on conditions such as first occurrence, last
occurrence, and odd or even elements.
Attribute selector: Selects elements by matching their attribute values.
Child filter: Filters an element set based on conditions such as first-child, last-child,
nth-child, and only-child.
Content filter: Filters elements based on their content.
Form selector: Selects form elements based on their type (button, check box, and so
on) and state (selected or checked).
Hierarchy selector: Selects elements from a hierarchy (children, descendents,
siblings, and adjacent).

Visibility filter: Selects elements based on their visibility status (visible or hidden).

这个写得很好,给需要的朋友

0 0
原创粉丝点击