easyPOI表格导入校验

吴沐珂 2018-05-24 04:27:08
easyPOI表格导入校验怎么写
...全文
1331 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
微笑++ 2020-03-10
  • 打赏
  • 举报
回复
<!--页面代码--> <el-upload action="/ordersetting/upload.do" name="excelFile" :show-file-list="false" :on-success="handleSuccess" :before-upload="beforeUpload"> <el-button type="primary">上传文件</el-button> </el-upload> <!--校验代码--> beforeUpload(file){ const isXLS = file.type === 'application/vnd.ms-excel'; if(isXLS){ return true; } const isXLSX = file.type === 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'; if (isXLSX) { return true; } this.$message.error('上传文件只能是xls或者xlsx格式!'); return false; },
吴沐珂 2018-05-25
  • 打赏
  • 举报
回复
https://blog.csdn.net/whz199511/article/details/80446891

58,452

社区成员

发帖
与我相关
我的任务
社区描述
Java Eclipse
社区管理员
  • Eclipse
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧