js邮件格式检查

it2022-05-09  30

        /**         * @returns {boolean} true: email; false: not email         */        this.isEmail = function(str){            console.log("isEmail in");            var re = /^([a-za-z0-9]+[_|-|.]?)*[a-za-z0-9]+@([a-za-z0-9]+[_|-|.]?)*[a-za-z0-9]+.[a-za-z]{2,3}$/;            return re.test(str);        };

转载于:https://www.cnblogs.com/wintersweetwang/p/4228517.html

相关资源:数据结构—成绩单生成器

最新回复(0)