52,797
社区成员
发帖
与我相关
我的任务
分享
...
$.post("url.jsp",{ name: "John", time: "2pm" },
function(data,textStatus) {
if(data.check=="false"){
...
}else{
...
}
},"json");
$.ajax({
url: "url.jsp",
data: { name: "John", time: "2pm" },
dataType: "json",
success: function(data,textStatus) {
if(data.check=="false"){
...
}else{
...
}
},
error:function(r,d){
alert(d);
}
});
$.post("test.aspx", { name: "John", time: "2pm" },
function (data, textStatus, jqXHR) {
alert(data.check+'\n'+jqXHR.responseText);
}, "json");