JavaScript:实现字符串是否是有效的电子邮件地址算法
/**
* Returns whether the given string is a valid email address or not.
*/
const validateEmail = (str) => {
if (str === '' || str
/**
* Returns whether the given string is a valid email address or not.
*/
const validateEmail = (str) => {
if (str === '' || str