In-depth analysis of jqueryajax request instances _ jquery-js tutorial

Source: Internet
Author: User
Jquery encapsulates some ajax request methods, which are very practical. This article will introduce an example to introduce the ajax request methods in jquery in detail, if you need to know more, you can refer to jquery to encapsulate some ajax request methods, which is very practical.
For example. ajaxComplete () -- when the request is complete. ajaxError () -- when the request fails. ajaxSend () -- append a function to execute the Ajax request. ajaxStart () -- when the request starts ,. ajaxStop () -- end of request. ajaxSuccess () -- when the request is successful. load () -- load data from the server and replace the returned HTML with jQuery. post () -- use an http post request to load server data. serialize () -- encode the form element set into a string for submission. serializeArray () -- encode the form element set into a key-Value Pair array jQuery. param () -- creates a serialized array or object that applies to a URL query string or Ajax request jQuery. getScript () -- load a js file from the server and execute jQuery. getJSON () -- load JSON-encoded data jQuery from the server. get () -- load data from the server. In short, 2.1 ,. ajaxStart () and. ajaxStop ()

The Code is as follows:





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.