JSDK3 Help > API参考 > Global > Functions >
ajax
PreviousNext

(1)ajax(url[,settings])
(2)ajax(settings)

arguments:

1)settings:
 .type: default: 'GET'. Can is 'GET' or 'POST'
 .xhr: XMLHttpRequest
 .url:
 .data:
 .cache: default: true
 .async: default: true
 .contentType: default: 'application/x-www-form-urlencoded'
 .mimeType:
 .charset: charset of response
 .context:
 .complete: callback function on success or error. usage:
  complete(xhr,textStatus)
 .success: callback function on success. usage:
  success(data,textStatus,xhr)
 .error: callback functon on error. usage:
  error(xhr,textStatus,errorThrown)
 .convert: charset convert program. usage:
  convert(bstr)
 .dataType: bin,text,json,xml


JSDK3 V1.8.0