Input框密码校验

Posted on   勤勤恳恳大猿人  阅读(937)  评论(0编辑  收藏  举报

项目背景:vue+ivew

html:

js校验:

正则:

/(?![A-Z_]+$)(?![a-z_]+$)(?![0-9_]+$)(?![0-9A-Z_]+$)(?![0-9a-z_]+$)(?![a-zA-Z_]+$)(?![0-9A-Z]+$)(?![0-9a-z]+$)(?![a-zA-Z]+$)[0-9A-Za-z_]{8,16}$/
努力加载评论中...
点击右上角即可分享
微信分享提示