各位大神求解了 本人菜鸟希望能给俺也上代码 谢谢
直接上代码了
$.ajax({
url: "/e/space/template/html5app/php/czcard.php?q="+ obj.cishu +"&t=20140623&d="+ obj.enddate +"&l="+ obj.leixing +"",
type:"post",
data:obj,
dataType:'json',
success: function(res){
loading(false);
if(res.sql = ture){
alert("成功", 1500);
}else{
alert("失败", 1500);
return false;
}
}
});
======================================================
"/e/space/template/html5app/php/czcard.php?q="+ obj.cishu +"&t=20140623&d="+ obj.enddate +"&l="+ obj.leixing +"", 打开这个网址的显示 {"dblink":null,"sql":true,"query":null,"num":null,"r":null,"id":null}
怎么获取到"sql":true,这个值 来判断显示成功或者失败呀
呼啦一阵风