直接在地址栏中输入有数据。
但是通过ajax却获取不到数据
$.ajax({
type: "post",
url: "http://www.smsadmin.cn/smsmarketing/wwwroot/interface/postSendSms/",
contentType: "application/x-www-form-urlencoded",
//dataType:"json",
data:{
uid: uid,
pwd: md5pwd,
mobile: mobile,
msg: msg
},
success:function(result){
alert(result);
}
});
应该是返回的类型不是json类型,大神帮忙看看怎么处理。
jquery用的是1.2.6版本,高版本无法执行success,会执行error回调函数。