【文件属性】:
文件名称:AJAX实例,get post应用
文件大小:2KB
文件格式:JS
更新时间:2014-05-01 12:04:36
AJAX
function Ajax(url,method,parameter,onSuccess,onError,onLoad){
this.xmlHttp=null;
this.url=url;
this.method=method;
this.parameter=parameter;
this.success=onSuccess?onSuccess:null;
this.error=onError?onError:this.error;
this.load=onLoad?onLoad:null;
this.reqheader="application/x-www-form-urlencoded";
}