javascript验证邮箱
1 2 3 4 5 6 7 8 9 10 11 12 |
function chekemail(email) { var pattern = /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/; if(pattern.test(email)) { return true; } else { return false; } } |