会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
simple-love
Figure out what you like. Try to become the best in the world of it.
首页
新随笔
订阅
管理
2021年4月17日
js输入框正则验证,各种限制
摘要: 1. 只能输入中文、数字和英文(即过滤特殊字符串|: function checkUsername() { //正则表达式 var reg = new RegExp("^[A-Za-z0-9\u4e00-\u9fa5]+$"); //获取输入框中的值 var username = document.
阅读全文
posted @ 2021-04-17 09:58 simple-love
阅读(1082)
评论(0)
推荐(0)
My GitHub