showInput:function(){var t = this;alert("增加工作經(jīng)驗(yàn)");$.ajax({type:"POST",async:true,url:globeo_.url+"/api/student/jycs/resume/insert/work",data:{company:t.company,department:t.department,duty:t.duty,starttime:t.starttime,endtime:t.endtime},dataType:"json",beforeSend: function (jqXHR, options) {globeo_.sendToken(jqXHR);},success:function(data,status,xhr){//console.log(xhr);//globeo_.getToken(xhr);console.log(data);if(data.status==1){alert("添加成功");location.reload();}else{alert("添加失敗");}},error:function(){alert("網(wǎng)絡(luò)錯(cuò)誤,請(qǐng)檢查接口");}}請(qǐng)求頭里面有data數(shù)據(jù)控制臺(tái)報(bào)錯(cuò)為:{status: 0, info: "服務(wù)器出錯(cuò)!"}
AJAX 傳送data 服務(wù)器報(bào)錯(cuò)是什么原因?
www說
2018-08-20 10:09:49