$.ajax ({type: ', data: ', async: ' ...})
Parameters:
1.cache: True Cache page false does not cache page
(Default: False when True,datatype is script and JSONP)
1.type:get/post
The request method ("POST" or "get"), the default is "get". Note: Other HTTP request methods, such as PUT and DELETE, can also be used, but only some browsers support it.
2.async:true/false
The default is true for asynchronous requests
False synchronization requests Note that the synchronization request locks the browser, and the user's other actions must wait for the request to complete before it can be executed.
3.data data sent to the server. is automatically converted to the request string format
Parameter objects that require an object or string type must be in the Key/value format, for example {foo1: "Bar1", Foo2: "Bar2"} to &foo1=bar1&foo2=bar2.
Single=single&multiple=multiple&multiple=multiple3&check=check2&radio=radio1
4.dataType: "JSON",
Expected data types returned by the server
@1. "JSON": Return JSON data
@2. " Jsonp ": Jsonp format. When calling a function using JSONP form, such as "myurl?callback=?" JQuery is automatically replaced? is the correct function name to execute the callback function.
5. Jsonp
Overrides the name of the callback function in a JSONP request. This value is used instead of "callback=?" The "callback" part of the URL parameter in this get or POST request, such as {jsonp: ' onjsonpload ', causes the "onjsonpload=?" passed to the server.
6. Jsonpcallback
The default is jquery automatically generated random function names
Specifies a callback function name for the JSONP request. This value will be used instead of the random function name generated by jquery automatically. This is primarily used to allow jquery to generate unique function names, which makes it easier to manage requests and provides a convenient way to provide callback functions and error handling. You can also specify this callback function name when you want the browser to cache a GET request.
7.success: (Data, Textstatus, JQXHR)
The callback function after the request succeeds. Parameters: The data returned by the server and processed according to the datatype parameter; A string describing the state. There are also jqxhr (in jquery 1.4.x, XMLHttpRequest) objects. In jquery 1.5, a successful setting can accept an array of functions. Each function is called sequentially.
8.$ ("form"). Serialize ()
Sequence all form contents as strings to sequence the values of all forms into the following string
Single=single&multiple=multiple&multiple=multiple3&check=check2&radio=radio1
o = $ (' form '). Serialize ();
"POST", Data:param, "JSON"false"Coupon_channel.php?act=update" function (data) {alert (data); }});
jquery's Asynchronous Ajax request uses