当前位置:网站首页>正则校验用户名
正则校验用户名
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>
边栏推荐
- Production scheduling status of manufacturing enterprises and solutions of APS system
- Hands on deep learning -- activation function and code implementation of multi-layer perceptron
- Model Trick | CVPR 2022 Oral - Stochastic Backpropagation A Memory Efficient Strategy
- MPLS的原理与配置
- x64dbg 调试 EXCEPTION_ACCESS_VIOLATION C0000005
- 三国杀周边--------猪国杀题解
- MATLAB image processing - cosine noise removal in image (with code)
- Model compression | tip 2022 - Distillation position adaptation: spot adaptive knowledge distillation
- MYSQL中的查询
- MES helps enterprises to transform intelligently and improve the transparency of enterprise production
猜你喜欢

Model Trick | CVPR 2022 Oral - Stochastic Backpropagation A Memory Efficient Strategy

Map the world according to the data of each country (take the global epidemic as an example)

三国杀周边--------猪国杀题解

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

ctfshow web3

The Three Kingdoms kill the surrounding areas -------- explanation of the pig Kingdom kill problem

安科瑞电动机保护器具有过载反时限、过载定时限、接地、起动超时、漏电、欠载、断相、堵转等功能

JVM学习笔记:三 本地方法接口、执行引擎

Hands on deep learning -- discarding method and its code implementation

(p17-p18) define the basic type and function pointer alias by using, and define the alias for the template by using and typedef
随机推荐
(p40-p41) transfer and forward perfect forwarding of move resources
MES helps enterprises to transform intelligently and improve the transparency of enterprise production
电气火灾探测器对各用电回路进行实时监控
ASP. Net project development practice introduction_ Item VI_ Error report (summary of difficult problems when writing the project)
APS究竟是什么系统呢?看完文章你就知道了
(p27-p32) callable object, callable object wrapper, callable object binder
(P14)overrid关键字的使用
js中的数组
Is it really expensive for enterprises to launch MES software?
What is the difference between ERP production management and MES management system?
网站Colab与Kaggle
Detailed explanation of private, public and interface attributes in cmake
(P13) use of final keyword
余压监控系统保证火灾发生时消防疏散通道的通畅,为大型高层建筑的安全运行和人民生命财产安全保驾护航
(p25-p26) three details of non range based for loop and range based for loop
Hands on deep learning -- Introduction to linear regression model
企业上线MES软件的费用真的很贵?
ctfshow web3
APS软件有哪些排程规则?有何异常处理方案?
Strvec class mobile copy