ajax use:
1. The introduction of the core library Jquery jquery-1.6. *. Js file.
2.
$.ajax({
type: "post / get", // request mode, the default Get, not case sensitive
async: true / flase, // whether asynchronous, the default is true (asynchronous)
url: "requested address"
data: "name = 'admin' & age = 45 & ..", // request parameters
dataType: "text", // expected return type of server
cache: true / false, // browser cache request information
success: function name, // callback function success
contentType: "application / x-www-form-urlencoded" // MIME type sent to the server information
});
Callback:
function function name (data) {
// callback function content
}