|

楼主 |
发表于 2020-5-28 15:30:45
|
显示全部楼层
测试上传附件的时候,发现
onComplete : function(docName, response) {
var fileList = $(response).find("file");
$("#"+uploaderDiv+'-waiting').remove();
if(fileList.length == 0){
throw justep.Error.create(new justep.Message(justep.Message.JUSTEP232026,response).getMessage());
}else{
if(onCompleteCallBack){
onCompleteCallBack.call(caller,docName,this,response);
}
}
}
不知道为啥这个方法走了两遍,第一遍长度为0所以抛出异常,第二次就能检测出文件的长度,可以上传附件,请版主看下如何能不弹出异常错误框 |
|