ajax不进入后台,仅仅执行error语句
public Object doTbKcfa(String plangid){
boolean flag = service.doTbKcfa(plangid);
if(flag==true){
return MessageBox.show(true, “同步成功!”);
}else{
return MessageBox.show(false, “同步失败,请重试”);
}
}
//同步课程方案数据
KaTeX parse error: Expected 'EOF', got '#' at position 24: …t).on("click","#̲btn_kcfa",funct…{plangid}";
confirm(“确定同步课程方案数据?”,{title:“提示”},function(){
KaTeX parse error: Expected '}', got 'EOF' at end of input: …d},
url:"{ctx}/gradeplan/doTbKcfa",
contentType: “application/json; charset=utf-8”,
dataType:‘json’,
success:function(val){
close(index);
if(val.success){
alert(val.msg);
table.ajax.reload();
if(_success!=""&&_success!=undefined&&_success!=null){
_success(val);
}
}else{
alert(val.msg);
if(_fail!=""&&_fail!=undefined&&_fail!=null)){
_fail(val);
}
}
},
error:function(){
close(index);
alert(“系统繁忙,请稍候重试!!”);
},
beforeSend:function(){
index = loading(2);
}
});
});
});