<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<script>
var email = 'abc@qq.com';
//var r = /^w+@[0-9a-z]+[0-9a-z-]+[0-1a-z]+(.[a-z]+)+$/gi;
var r = /^w+([-+.]w+)*@w+([-.]w+)*.w+([-.]w+)*$/; // TP框架内置的邮箱验证格式
var result = r.test(email);
console.log(result);
</script>
</body>
</html>