Jquery method summary
1. find ()
The find () method gets the descendant of each element in the current element set, and filters by selector, jQuery object, or element.
Example:
((P).find(span).css ('color', 'red'); // search for the descendant span element in all p tags and set its color to red
2. html ()
The html () method returns or sets the content of the selected element. [This is equivalent to modifying el. innerHTML]
3. ajax
$ (Document). ready (function (){
$ (# Btn). on (click, function (){
$. Get (Server. php, {name :( # namevalue). value), function (data ){
$ (# Result). text (data );
}). Error (function (){
$ (# Result). text (error );
});
});
})
4. push
The push () method can add one or more elements to the end of an array and return a new length.
ArrayObject. push (newelement1, newelement2,..., newelementX)
The push () method can add its Parameter order to the end of arrayObject.
It directly modifies the arrayObject instead of creating a new array. The push () and pop () methods use the advanced post-stack functions provided by arrays.