[Introduction] jQuery Ajax in the Web application development is very common, it mainly includes ajax,get,post,load,getscript and so on several commonly used no refresh operation method, below I come to introduce to you students. Let's start with
$.get (), $.post (), $.ajax (), $.getjson ()A, $.get (Url,[data],[callback])Description: URL is the request address, data is the list of request data, callback is the callback function after the successful request, the function accepts two
The client should continue to send the request. This temporary response is used to inform the client that some of its requests have been received by the server and are still not rejected. The client should continue to send the remainder of the
1.url: Requires that the requested address be sent as a parameter of type string (the current page address is assumed to be the default).2.type: A parameter of type string is required, and the request method (post or get) defaults to get. Note Other
Last reviewed the XMLHttpRequest object, this time to summarize the other Ajax objects, as well as the various versions of AJAX usage and differences.formdateNow everyone in the web will use the form's data serialization, XMLHttpRequest also
1XX messageThis type of status code, on behalf of which the request has been accepted, needs to be processed. This type of response is a temporary response that contains only the status line and some optional response header information and ends
One, $.get (Url,[data],[callback])Description: URL is the request address, data is the list of request data, callback is the callback function after the successful request, the function accepts two parameters, the first is the data returned by the
Recently in the function of a business address book, the function is very simple, my intention is to do data storage and do synchronous update, time reason and the service side of the colleague more inclined to simple point of way, hehe, so we took
Jquery.ajax (), there are many parameters, younger brother rookie level, sometimes can not remember, now recorded for easy viewing later, but also welcome the great God.Commonly used in several categories, which can be called template style notation:
jquery is really a very good lightweight JS framework that can help us to develop JS applications quickly and to some extent change the way we write JavaScript code.Talk less, go straight to the point, we first look at some simple methods, these
#针对于项目而言What we need to understand is that* Most of the files in the project are static files, only the data part has the dynamic request.* Data section requests are presented as restful features.* So the project consists of two parts that are
Ajax method parameters in jquery are always remembered, here is a record.1.url:Requires that the requested address be sent as a parameter of type string (the current page address is assumed to be the default).2.type:A parameter of type string is
Ajax method parameters in jquery are always remembered, here is a record.1.url: Requires that the requested address be sent as a parameter of type string (the current page address is assumed to be the default).2.type: A parameter of type string is
URL: The requested address is requested for a parameter of type string, (the current page address is assumed to be the default).Type: A parameter of type string is required, and the request method (post or get) defaults to get. Note Other HTTP
Summary of usage of $.get (), $.post (), $.ajax (), $.getjson () in jqueryRead more about jquery's various Ajax functions:$.get (), $.post (), $.ajax (), $.getjson ()A, $.get (Url,[data],[callback])Description: URL is the request address, data is
[Introduction] jQuery Ajax in the Web application development is very common, it mainly includes ajax,get,post,load,getscript and so on several commonly used no refresh operation method, below I come to introduce to you students. Let's look at the
The use of Ajax method parameters in jquery and what he means:1.url:Requires that the requested address be sent as a parameter of type String (the current page address is assumed to be the default).2.type:A parameter of type String is required, and
Original link: http://mybloggers.blog.163.com/blog/static/1003865092010111631741468/Here is a detailed list of Ajax parameters in jquery:
Name of parameter
Type
Describe
Url
String
(Default: Current
Details about Jquery Ajax functions:$. Get (), $. post (), $. ajax (), $. getJSON ()
1, $. get (url, [data], [callback])
Note: The url is the request address, the data is the list of request data, and the callback is the callback function after the
Load () method
Load (Url,[data],[callback])
URL is the loaded page address
Data represents the information sent to the server. Format is Key/value
The callback format is: function (responsetext,textstatus,xmlhttprequest) {}
ResponseText:
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.