wudimei.js ajax request
点击 7175 创建时间 2012-10-22 18:41:22
ajax declaretion:
Wudimei.Request.ajax( method , // GET or POST
url,
params , // Object
callbackFunction
);
demos:
GET
var r=new Wudimei.Request();
r.ajax({
method:"GET",
url:"request.php?a=b&c=d",
params:{name:"YangQingRong","age&":26 ,"phone[0]":"13714715608","phone[1]":"&wudimei.com"},
success:function(txt,xml){
alert( txt );
}
});
POST
var r=new Wudimei.Request();
r.ajax({
method:"GET",
url:"request.php?a=b&c=d",
params:{name:"YangQingRong","age&":26 ,"phone[0]":"13714715608","phone[1]":"&wudimei.com"},
success:function(txt,xml){
alert( txt );
}
});
https://github.com/yangqingrong/wudimei.js/blob/main/demos/framework/index.html
上一篇: 康盛创想 ucenter 学习(一) :用户注册以及用户同步登录
下一篇: wudimei.js成功解析css选择器中的两种。