showInput:function(){
var t = this;
alert("增加工作经验");
$.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("网络错误,请检查接口");
}
}
请求头里面有data数据
控制台报错为:{status: 0, info: "服务器出错!"}
慕虎7371278
相关分类