百分百是json格式有问题!!!!!!!!!!!!
1.检查json标点符号。
2.存在变量时,检查变量是否定义。
3.如果变量名和json键名崇明,最好换名字
$.ajax(
type : 'post',
url : 'https://www.baidu.com',
dateType : 'json',
data : {
type : typea,
money : moneya,
time_limit : times,
ground : grounda,
dest : desta,
ldest : ldest
},
async:true,
//加载等待
beforeSend :function loading(){
loadingTips();
},
success : function(dateRtn){
layer.closeAll();
var rtn = JSON.parse(dateRtn);
if(rtn == '1'){
successTips();
}else{
errorTips();
}
},
error : function(){
errorTips();
}
})