最新的$.ajax 不指定

Else , 2008/06/24 16:41 , 积累些,自己也写些 , Comments(1) , Reads(3396) , Via Original
async Boolean Default: true
By default, all requests are sent asynchronous (e.g. this is set to true by default). If you need synchronous requests, set this option to false. Note that synchronous requests may temporarily lock the browser, disabling any actions while the request is active.
beforeSend Function  
A pre-callback to modify the XMLHttpRequest object before it is sent. Use this to set custom headers etc. The XMLHttpRequest is passed as the only argument. This is an Ajax Event. You may return true in function to cancel the request.

function (XMLHttpRequest) {
  this; // the options for this ajax request
}

Pages: [1] [2]
Tags: ,
Else Email Homepage
2008/06/24 16:46
cache的功能可可以让程式少写了点

Only for requests with 'jsonp' or 'script' dataType and GET type. Forces the request to be interpreted as a certain charset. Only needed for charset differences between the remote and local content.

看来只有这两个了
Pages: 1/1 First page 1 Final page
Add a comment

Nickname

Site URI

Email

Enable HTML Enable UBB Enable Emots Hidden Remember [Login] [Register]