摘要: validate.js(代码如下) export const checkVaild = (str, type) => { switch (type) { case 'phone': // 手机号 return /^1[0-9][0-9]{9}$/.test(str) case 'tel': // 座 阅读全文
posted @ 2021-01-05 12:03 james_liang 阅读(332) 评论(0) 推荐(0) 编辑