摘要: 在项目的根目录下新建一个‘utils’文件夹 ,utils下新建validate.js validate.js 代码如下 export const checkVaild = (str, type) => { switch (type) { case 'phone': // 手机号 return /^ 阅读全文
posted @ 2021-01-27 17:33 james_liang 阅读(615) 评论(0) 推荐(0) 编辑