标签:
/**
* @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);
};
标签:
原文地址:http://www.cnblogs.com/wintersweetwang/p/4228517.html