JQuery Reference Manual 2

Source: Internet
Author: User

Ajax operation functions:

function Description
Jquery.ajax () Executes an asynchronous HTTP (Ajax) request.
. Ajaxcomplete () Registers the handler to invoke when the Ajax request completes. This is an Ajax event.
. Ajaxerror () Registers the handler to invoke when the Ajax request completes and an error occurs. This is an Ajax event.
. Ajaxsend () Displays a message before the Ajax request is sent.
Jquery.ajaxsetup () Sets the default value for future Ajax requests.
. Ajaxstart () Registers the handler to invoke when the first Ajax request completes. This is an Ajax event.
. Ajaxstop () Registers the handler to invoke when all Ajax requests are complete. This is an Ajax event.
. Ajaxsuccess () Displays a message when the Ajax request completes successfully.
Jquery.get () Loads data from the server using an HTTP GET request.
Jquery.getjson () Loads JSON-encoded data from the server using an HTTP GET request.
Jquery.getscript () Loads the JavaScript file from the server using an HTTP GET request, and then executes the file.
. Load () Loads the data from the server and then returns it to the HTML to put in the matching element.
Jquery.param () Creates a serialization representation of an array or object that is suitable for use in URL query strings or Ajax requests.
Jquery.post () Loads data from the server using an HTTP POST request.
. Serialize () Serializes the form contents into a string.
. Serializearray () Serializes the form element and returns the JSON data structure.
Traverse:

function Description
. Add () Adds an element to the collection of matching elements.
. Andself () Adds the set of elements before the stack to the current collection.
. Children () Gets all the child elements of each element in the matching element collection.
. Closest () Starts with the element itself, recursively matches the ancestor element, and returns the first matching ancestral element.
. Contents () Gets the child elements of each element in the matching element collection, including text and annotation nodes.
. each () Iterate over the JQuery object, executing the function for each matching element.
. End () Ends the most recent filter operation in the current chain and returns a collection of matching elements back to the previous state.
. EQ () Reduces the collection of matching elements to the new element at the specified index.
. Filter () Reduces the collection of matching elements to a new element that matches the return value of a selector or matching function.
. Find () Gets the descendants of each element in the current matching element collection, filtered by the selector.
. A () Reduces the collection of matching elements to the first element in the collection.
. has () Reduces the collection of matching elements to a collection of descendants that contain specific elements.
. is () Checks the collection of current matching elements according to the selector, and returns True if there is at least one matching element.
. Last () Reduces the collection of matching elements to the last element in the collection.
. Map () Passes each element in the current matching collection to a function, generating a new JQuery object that contains the returned value.
. Next () Gets the sibling elements that are adjacent to each element in the matching element collection.
. Nextall () Gets all sibling elements after each element in the collection of elements, which is filtered by the selector (optional).
. Nextuntil () Gets all sibling elements after each element until the element that matches the selector is encountered.
. Not () Deletes an element from the collection of matching elements.
. offsetparent () Gets the first parent element to use for positioning.
. Parent () Gets the parent element of each element in the current matching element collection, optionally filtered by the selector.
. Parents () Gets the ancestor element of each element in the current matching element collection, optionally filtered by the selector.
. Parentsuntil () Gets the ancestor element of each element in the current matching element collection until the element that matches the selector is encountered.
. Prev () Gets the first sibling element next to each element in the matching element collection, filtered by selector (optional).
. Prevall () Gets all sibling elements before each element in the matching element collection, which is filtered by the selector (optional).
. Prevuntil () Gets all the sibling elements before each element until the element that matches the selector is encountered.
. Siblings () Gets the sibling element of all elements in the matching element collection, which is filtered by the selector (optional).
. Slice () Reduces the set of matching elements to a subset of the specified range.
Data:

function Description
. Clearqueue () Deletes all items that are not running from the queue.
. Data () Stores any data associated with a matching element.
Jquery.data () Stores any data associated with the specified element.
. Dequeue () Remove a queue function from the top end of the queue and execute it.
Jquery.dequeue () Remove a queue function from the top end of the queue and execute it.
Jquery.hasdata () Stores any data associated with a matching element.
. Queue () Displays or operates the queue of functions performed by the matching element.
Jquery.queue () Displays or operates the queue of functions performed by the matching element.
. Removedata () Remove data that was previously stored.
Jquery.removedata () Remove data that was previously stored.
Dom Element Method:

function Description
. Get () Deletes all items that are not running from the queue.
. Index () Stores any data associated with the specified element.
. Size () Stores any data associated with a matching element.
. ToArray () Remove a queue function from the top end of the queue and execute it.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.