Ajax.Request(url,{method:method,parameters:para,postBody:xmlString,asynchronous:true,setRequestHeader:Object,onComplete:completeFun,onError:errorFun})发送异步请求。(此方法是为兼容 prototype.js 而写,调用风格与 prototype 一致,使用Ajax.Request此方法请在页面中加载此js文件)
参数url 必选项。数据发送的目标地址。 method 可选项。数据提交的方式,默认值为get。常用的还有post。 parameters 当 method 为 get 时是可选项,为 post 时是必选项。发送的数据,其形式为: name1=valeu1& name2=value2&name3=value3...... postBody 可选项。客户端发送的 xml 格式字符串。如果启用 postBody,那么 parameters 将被忽略。 asynchronous 可选项。指定请求是否异步,默认为true(异步)。 s