Function: isValidEmail

isValidEmail(val): boolean

是否为有效的邮箱地址 名称允许汉字、字母、数字,域名只允许英文域名 中文如:杨元庆001Abc@lenovo.com.cn

Parameters

Name Type Description
val string 需要验证的邮箱字符串

Returns

boolean

  • 返回验证结果

Example

isValidEmail('123456@qq.com');
// => true

Example

isValidEmail('杨元庆001Abc@lenovo.com.cn');
// => true
ON THIS PAGE