9***@qq.com
9***@qq.com
  • 发布:2017-03-11 01:16
  • 更新:2017-03-11 01:16
  • 阅读:3470

mui,ajax使用post方法,最终发送的是options方法显示405错误

分类:MUI

mui.ajax(url,{
data:{
data_type:'json',
phone_number:‘12345678911’,
password:‘123456’,
code:'1234'
},
dataType:'json',//服务器返回json格式数据
type:'post',//HTTP请求类型
timeout:10000,//超时时间设置为10秒;
headers:{'Content-Type':'application/json'},
success:function(data){
console.log(data);
},
error:function(xhr,type,errorThrown){
//异常处理;
console.log(type);
}

2017-03-11 01:16 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复