private String fileContentType;//上传的文件类型
publicvoid doImport(){
//文件类型判断
if(!"application/vnd.ms-excel".equals(fileContentType)){
ajaxReturn(false,"上传的文件必须为excel文件");
return;
}
}
private String fileContentType;//上传的文件类型
publicvoid doImport(){
//文件类型判断
if(!"application/vnd.ms-excel".equals(fileContentType)){
ajaxReturn(false,"上传的文件必须为excel文件");
return;
}
}