摘要:
1 export function testEmail(email) { 2 var reg = new RegExp("^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$"); 3 return 阅读全文
摘要:
1 export function testPhone(phone) { 2 let phoneReg = /(^1[3|4|5|6|7|8|9]\d{9}$)|(^09\d{8}$)/; 3 return phoneReg.test(phone); 4 } 阅读全文