验证文件类型正则

if(/\.(csv|xlsx|xls)$/.test(fileTem.name)) {
                this.file = fileTem;
                this.isFileHas = false;
            }

验证文件类型正则

评论

暂无评论