当前位置:网站首页>正则form表单判断
正则form表单判断
2022-07-27 10:22:00 【会跳舞的小猴子】
手机号
rules: [
{
required: noValida ? false : true,
message: "手机号不能为空!",
},
{
pattern: /^(?:(?:\+|00)86)?1(?:(?:3[\d])|(?:4[5-7|9])|(?:5[0-3|5-9])|(?:6[5-7])|(?:7[0-8])|(?:8[\d])|(?:9[1|8|9]))\d{8}$/,
message: "请输入正确的手机号",
},
],
邮箱
rules: [
{
required: noValida ? false : true,
message: "邮箱不能为空!",
},
{
pattern: /^(([^<>()[\]\\.,;:\[email protected]"]+(\.[^<>()[\]\\.,;:\[email protected]"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
message: "请输入正确的邮箱地址",
},
],
边栏推荐
- Delete in MySQL: the difference between delete, drop and truncate
- antd table+checkbox 默认值显示
- gyp ERR! configure error. gyp ERR! stack Error: gyp failed with exit code: 1
- Apache cannot start in phpstudy
- Multipoint bidirectional republication and routing strategy
- Distributed block device replication: client
- No identifier specified for entity solution
- es6的foreach与some的循环遍历
- How to modify the strict mode under MySQL so that adding new users by inserting user table is successful
- Codeforces Round #807 (Div 2.) AB
猜你喜欢

华硕无双,这可能是屏幕最好的平价高刷轻薄笔记本

FTP server

Recruit top talents! The "megeagle creator program" of Kuangshi technology was officially launched

Multipoint bidirectional republication and routing strategy

MySQL数据表的高级操作

Advanced operation of MySQL data table

Want to speed up the vit model with one click? Try this open source tool!

How to turn off the application of computer self startup

Mail server

Server access speed
随机推荐
Record of a cross domain problem
ECCV 2022 | complete four tracking tasks at the same time! Unicorn: towards the unification of target tracking
Set up Samba service
Awesome! VMware esxi installation record, with download
Codeforces Round #807 (Div 2.) AB
Matlab create the logo of MATLAB
[Linux] mariadb/mysql scheduled full backup script and data recovery
Delete in MySQL: the difference between delete, drop and truncate
Distributed block device replication: client
7z usage
家庭琐事问题
【Liunx】安装MySQL
Matlab- draw date and duration diagram
Custom page 01 of JSP custom tag
MySQL log management, backup and recovery
Mysql死锁、悲观锁、乐观锁
Have you ever seen this kind of dynamic programming -- the stock problem of state machine dynamic programming (Part 1)
[intensive reading of thesis]bert
No identifier specified for entity solution
tf.AUTO_ Function of reuse