摘要: 话不多说,看方法: // 检查文件是否以规定的拓展名为结尾 checkFile(name) { const reg = /(.txt|.html|.css|.js|.config|.json|.htm|.zip|.rar)$/; if (!reg.test(name)) { return false 阅读全文
posted @ 2021-03-16 15:49 鹿lu 阅读(66) 评论(0) 推荐(0) 编辑