<form action="#" method="post">
<input type="text" name="username" id="username" value="" placeholder="请输入您的用户名" onfocus="this.placeholder=''"pattern="[a-zA-Z0-9_-]{4,16}" onblur="this.placeholder='请输入您的用户名' " required/>
<input type="password" name="password" id="password" value="" placeholder="请输入您的密码" onfocus="this.placeholder=''"pattern="^.*(?=.{6,})(?=.*\d)(?=.*[A-Z])(?=.*[a-z])(?=.*[!@#$%^&*?. ]).*" onblur="this.placeholder='请输入您的密码' " required/>
<input type="text" name="verification" id="verification" value="" placeholder="请输入您的验证码" onfocus="this.placeholder=''" onblur="this.placeholder='请输入您的验证码'"required/>
<input type="submit" name="login" id="login" value="登录" onclick="return check();">
</form>
登录页面加客户端校验
最新推荐文章于 2022-11-24 16:34:30 发布