js 邮件格式检查
/**
* @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);
};
posted on 2015-01-16 13:46 winterwang 阅读(285) 评论(0) 收藏 举报
浙公网安备 33010602011771号