当前位置:网站首页>正则校验用户名
正则校验用户名
2022-06-12 08:28:00 【月来better】
支持中文、英文、符号、数字
<input type="text" name="" id="username" onblur="usernameReg()" />
<script>
function usernameReg() {
const username = document.getElementById("username");
const reg = /^[[email protected]_\u4e00-\u9fa5]{
4,30}$/;
alert(reg.test(username.value));
}
</script>
边栏推荐
- Hands on deep learning -- activation function and code implementation of multi-layer perceptron
- MPLS的原理与配置
- ctfshow web3
- MES系统是什么?MES系统的操作流程是怎样?
- Database foundation -- normalization and relational schema
- (P36-P39)右值和右值引用、右值引用的作用以及使用、未定引用类型的推导、右值引用的传递
- 数据库基础——规范化、关系模式
- 工厂的生产效益,MES系统如何提供?
- MYSQL中的调用存储过程,变量的定义,
- Hands on deep learning 18 -- model selection + over fitting and under fitting and code implementation
猜你喜欢

(p27-p32) callable object, callable object wrapper, callable object binder

x64dbg 调试 EXCEPTION_ACCESS_VIOLATION C0000005

如何理解APS系统的生产排程?

Py&GO编程技巧篇:逻辑控制避免if else

建立MES系统,需要注意什么?能给企业带来什么好处?

企业为什么要实施MES?具体操作流程有哪些?

数据库基础——规范化、关系模式

Bean的作用域

FDA审查人员称Moderna COVID疫苗对5岁以下儿童安全有效
![Easyexcel exports excel tables to the browser, and exports excel through postman test [introductory case]](/img/ca/0e2bd54a842a393231ec6db5ab02c2.png)
Easyexcel exports excel tables to the browser, and exports excel through postman test [introductory case]
随机推荐
Only use MES as a tool? Looks like you missed the most important thing
Py & go programming skills: logic control to avoid if else
Webrtc adding third-party libraries
MYSQL中的触发器
Install iptables services and open ports
【进阶指针一】字符数组&数组指针&指针数组
What is the beauty of MES equipment management for enterprises?
Py&GO编程技巧篇:逻辑控制避免if else
企业上MES系统的驱动力来自哪里?选型又该注意哪些问题?
(p19-p20) delegate constructor (proxy constructor) and inheritance constructor (using)
vm虛擬機中使用NAT模式特別說明
ctfshow web3
【 pointeur avancé Ⅲ】 mise en œuvre de la fonction de tri rapide qsort& fonction de rappel en langage C
MES系统质量追溯功能,到底在追什么?
MES帮助企业智能化改造,提高企业生产透明度
企业为什么要实施MES?具体操作流程有哪些?
(P13)final关键字的使用
Hands on deep learning -- activation function and code implementation of multi-layer perceptron
Special notes on using NAT mode in VM virtual machine
R loop assignment variable name