
js正则验证邮箱格式是否正确。
function isEmail(email {
if (!email {
return false;
}
var strRegex = /^(\w-*\.*+@(\w-?+(\.\w{2,}+$/;
if (!strRegex.test(email {
return false;
}
return true;
}

js正则验证邮箱格式是否正确。
function isEmail(email {
if (!email {
return false;
}
var strRegex = /^(\w-*\.*+@(\w-?+(\.\w{2,}+$/;
if (!strRegex.test(email {
return false;
}
return true;
}