//验证电子邮箱function valiMail(mail){ //对电子邮件的验证 var email = new RegExp('^[a-zA-Z0-9]+@[a-zA-Z0-9]+.[a-z][a-z.]{2,8}$'); return email.test(mail);}