您的位置:首页 > 其它

ajax提交

2016-07-28 15:30 309 查看
-post

$.ajax({
type: "POST",
dataType: "json",
url: "/validate.html",
data: "wyuser="+wyuser+"&txqq="+txqq,
success: function (data) {
jsonStr = data;
},
eror: function (data) {
alert("请求超时!")
}
});


-GET提交

$.ajax({
url:"{php echo $this->createWebUrl('goods',array('op'=>'end'));}",
data:"wyuser="+wyuser+"&txqq="+txqq,
dataType:"text",
success:function(data){
location.reload();
}
});
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  ajax