Definition and usageThe Ajax () method loads remote data over an HTTP Request.This method is the jQuery underlying AJAX Implementation. Easy to use high-level implementation see $.get, $.post and so On. $.ajax () Returns the XMLHttpRequest object
Run the HelloWorld sample into the Debug interface.dispatcherservlet: Front ControllerDispatcherservlet.dodispatch (HttpServletRequest, HttpServletResponse) line:945 876 931 822624 807 731 From the above into the source
Ajax---Asynchronous JavaScript and XML-------asynchronous JavaScript and XML-------(in case you don't know what these characters mean)var stream = {ID: $ ("#streamId"). Val (),Title: "" = = $ ("#stream_title"). Val (). Trim ()? Null: $
//Ajax public methods, ZS 2017-06-14$.extend ({//more parameters than JQ's Ajax: //Salert Whether the background suressstr field value pops up after the request succeeds //ealertstr: Request ErrorMajax:function(a) {if(typeofA = = = "Object") {
HTTP Status Code table (version 1) Continue continues. The client should continue its request 101 switching protocols switch protocol. The server switches the protocol based on the client's request. You can only switch to a more advanced protocol,
Tag: string code ORM request load HTM LOB status this1.urlDescription: The address of the sending request (default is the current page), requires a string type parameter, such as. NET, "~wexin (Controller)/getweinxinmenu (action)",2.typeDescription:
First, $.ajax method parameters1.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)
This data is from the network
Status Code
meaning
100
The client should continue to send the request. This temporary response is used to inform the client that some of its requests have been
Status Code
meaning
100
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
$.ajax () is the bottom-most AJAX implementation of jquery. Easy-to-use high-level implementations see$.get (), $.post ()It is structured as:$.ajax (Options), the method has only one parameter, but in this parameter contains $.ajax () required
Here I will call jQuery Ajax to Aspx. several common methods of Net WebService have been sorted out and provided to bloggers who are looking for such content. They hope to help jQuery learners and directly copy and run the code.
Ws. aspx code
Tag: Text top Dex passes a literal strong the row document causesURL: 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
jquery Ajax methods and the detailed parameters1.$.ajax () has only one parameter: The parameter Key/value object, which contains the configuration and callback function information.Parameter list:
Name of parameter
Type
Message (1-word header) edit this type of status code, which indicates that the request has been accepted and needs to be processed. This type of response is a temporary response that contains only the status line and some optional response header
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
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
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
The use of the AJAX request $.ajax methodUsing jquery's $.ajax method, you can control AJAX requests in more detail. It imposes a fine-grained level of control on the AJAX request.$.ajax method Syntax
$.ajax (Options)
1. HTTP request message Format First, look at the message format of the HTTP request message, as shown in: the first line is the request line, the request line has 3 fields, the Method field, the URL field, and the HTTP version field. Method
Type: A parameter of type string is required, and the request method (post or get) defaults to get. Note Other HTTP request methods, such as put andDelete can also be used, but only some browsers support it.Timeout: Requires a parameter of type
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.