1. Selector:
A) a > B elements that match B as a sub-element
b) A + B is the element that matches the B of the immediate sibling element behind
c) A ~ b is an element that matches the B of a later sibling
2. Positioning between elements:
A): Even the even elements in the result (counting from 0)
b): The odd element in the odd result (counting starting from 0)
c): The element indexed as index in the EP (index) result (counting starting from 0)
D): All elements in the LT (index) result after the given index (counting from 0)
E): All elements in the GT (index) result that precede the given index (count from 0)
3. Properties:
a) [attr!= "value"] attr the value of the property is not an element of value
b) [attr^= "value"] attr the value of the property begins with the element
c) [attr$= "value"] the element with the value of the attr attribute ending with value
d) [attr*= "value"] the value of the Attr property contains the element of the string value
e) [attr~= "value"] the value of the Attr property is a space-delimited number of strings, one of which is value
4. Filter elements:
a). Filter (selector) matches the selected element of the given selector
b). Filter (callback) callback function callback returns true for the selected element
c). EQ (index) counts the index selected element starting from 0
d). First () SELECT element
e). Last () Select the final element of the element
f). Slice (Start,[end]) The selected element in the given range starting from 0
g). Not (selector) the element in the selected element that does not match the given selector
h). has (selector) the element in the selected element that has descendants that match the given selector
5. Descendant elements
a). Find (selector) a descendant element that matches a given selector
b). Contents () Child nodes (excluding text nodes)
6. Peer elements
A). Next ([selector]) next sibling element adjacent to each selected element, selector optional
b). Nextall ([selector]) all sibling elements after each selected element, selector optional
c). Nextuntil ([Selector],[filter]) after each selected element, up to but not including the first matching selector sibling element, selector, filter optional
7. Ancestor elements
a). Parent ([selector]) of each selected element, selector optional
b). Parents ([selector]) all ancestor elements of each selected element, selector optional
c). Parentsuntil ([Selector],[filter]) all ancestor elements of each selected element, up to but not including the ancestor of the first matching selector, selector, filter optional
D). Closest (selector) matches the first element of the selector selector, traversing the path starting from the selected element, along the DOM number upward in which the FA loves you in the node's search
e). OffsetParent () The fluorine element that the first selected element is designated as
8. Set operation
a). Add (selector) the selected element, plus the element that matches the given selector
b). The elements of the Addback () element, plus the set of elements that were previously selected in the internal jquery stack
c). End () the previously selected element in the jquery stack
D). Map (callback) results after invoking the callback function on each selected element
e). Pushstack (elements) The specified element
9. Operation of selected elements
A). Is (selector) the selected element, plus the element that matches the given selector
b). The element of the index () element, plus the set of elements that were previously selected in the internal jquery stack
c). The previously selected element in the index (elements) internal jquery stack
d) $. Contains (A, b) the result of invoking a callback function on each selected element
e). Each (callback) iterates over the matched elements, executing the callback function for each element
f). Get () Gets a list of DOM nodes corresponding to the matching element
g). Get (Index) Gets the DOM node corresponding to the specified index in the matching element
h). ToArray () Gets a list of DOM nodes corresponding to the matching element
10. Custom Effects
a). Slidedown (Attr,[speed],[easing],[callback]) perform custom animations for the specified CSS properties
11. Insert
a). Append (content) inserts content at the end of each matching element
b). AppendTo (selector) inserts the matched element at the end of the inside of the selector matched element
c). prepend (content) inserts content at the beginning of each matching element
d). Prependto (selector) inserts the matched element at the beginning of the inside of the selector matching element
e). After (content) inserts a content after each matching element
f). InsertAfter (content) inserts the matched element behind the selector matched element
g). Before (selector) inserts content in front of each matching element
h). InsertBefore (selector) inserts the matched element to the front of the selector matched element
i). Wrap (content) wraps the matched elements into the content
j). Wrapall (content) wraps each matched element into the content as a unit
k). Wrapinner (content) wraps the contents of each matching element inside
12. Replace
a). ReplaceWith (content) replaces matched elements with content
b). ReplaceAll (selector) replaces the selector match element with the matching element
13. Delete
a). Unwrap () Delete the parent element of the element
Common operations for jquery