//验证邮箱
function checkEmail(value) {
return /^[A-Za-z\d]+([-_.][A-Za-z\d]+)*@([A-Za-z\d]+[-.])+[A-Za-z\d]{2,4}$/.test(value)
}
08-05
1419
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
10-11
719
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
//验证邮箱
function checkEmail(value) {
return /^[A-Za-z\d]+([-_.][A-Za-z\d]+)*@([A-Za-z\d]+[-.])+[A-Za-z\d]{2,4}$/.test(value)
}