当前位置:网站首页>正则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: "请输入正确的邮箱地址",
},
],
边栏推荐
- Set up Samba service
- Substr and substring function usage in SQL
- Apache22 and opencms9.5 integrated configuration
- Matlab create text cloud
- Detailed explanation of status code meaning
- [shutter] SharedPreferences
- Eslint's error message module error (from./node_modules/ [email protected] @Eslint loader / index. JS)
- SQL injection
- The difference between scalar, vector, matrix and tensor in deep learning
- [brother hero's June training] day 27: picture
猜你喜欢
![[Flink] Flink builds clusters in standalone mode](/img/5b/e566fdd2792b5cda7d37d308ee32e2.png)
[Flink] Flink builds clusters in standalone mode

One stop monitoring of the software and hardware infrastructure of the whole university, and Suzhou University replaces PostgreSQL with time series database

基于Spark封装的二次开发工程edata-base,介绍

Li Hongyi_ Machine learning_ Assignment 4 (detailed explanation)_ HW4 Classify the speakers

厉害了!VMware ESXi安装记录,附下载

Open source project - taier1.2 release, new workflow, tenant binding simplification and other functions

Edata base, a secondary development project based on spark packaging, is introduced

ECCV 2022 | 同时完成四项跟踪任务!Unicorn: 迈向目标跟踪的大统一

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

Mail server
随机推荐
Tdengine business ecosystem partner recruitment starts
One stop monitoring of the software and hardware infrastructure of the whole university, and Suzhou University replaces PostgreSQL with time series database
tf.AUTO_ Function of reuse
让人深思:句法真的重要吗?邱锡鹏组提出一种基于Aspect的情感分析的强大基线...
开源项目丨Taier1.2版本发布,新增工作流、租户绑定简化等多项功能
File upload vulnerability related
想要一键加速ViT模型?试试这个开源工具!
Shardingproxy sub database and table actual combat and comparison of similar products
Openldap custom schema
[brother hero's June training] day 26: check the collection
Establishment of NFS server
Camera switching
MySQL log management, backup and recovery
C语言 2:求三数字最大值,求三数字中间值,编写程序步骤
Tcp/ip protocol
phpstudy中Apache无法启动
Iptables prevent nmap scanning and binlog explanation
TensorFlow笔记——基本函数及概念
Tensorflow notes - basic functions and concepts
Matlab sound classification based on short-time neural network