The JQuery Ajax $.get () method and the $.post () method _jquery

Source: Internet
Author: User

Note: the $.get () and $.post () methods are global functions in jquery. The load () method described earlier is an operation on a jquery object.

1, $.get () method

The $.get () method uses the Get method to make asynchronous requests.

Its grammatical structure is:

  $.get (URL [, data] [, callback] [, type])

The $.get () method parameter explains the following table:

Parameter name Type Description
Url String URL address of the requested HTML page
Data (optional) Object Key/value data sent to the server is appended to the request URL as a querystring
Callback (optional) Function The callback function when the load succeeds (the method is called only when the response returns state) automatically passes the request result and state to the method success
Type (optional) String The format of the server-side return content, including XML, HTML, script, JSON, text, and _default

Related Article

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.