直播app开发搭建,注册时确定两次密码一致
直播app开发搭建,注册时确定两次密码一致
1、verification.jsp
onblur 事件会在对象失去焦点时发生
1 | <br><%@ page contentType= "text/html;charset=UTF-8" language= "java" %><br><html><br><head><br> <title>Title</title><br></head><br><script type= "text/javascript" src= "../js/jquery02.js" ></script><br><body><br><script><br> function verification() {<br> var pw1 = document.getElementById( "repassword" ).value;<br> var pw2 = document.getElementById( "password" ).value;<br> if (pw1 == pw2) {<br> document.getElementById( "tishi" ).innerHTML= "两次密码相同" ;<br> document.getElementById( "button" ).disabled = false;<br> }<br> else {<br> document.getElementById( "tishi" ).innerHTML= "两次密码不相同" ;<br> document.getElementById( "button" ).disabled = true;<br> }<br> }<br></script><br> <p id= "tishi" style= "color: red" ></p><br> <p>账号:<input type= "text" name= "name" ><br></p><br> <p>密码:<input type= "text" id= "password" onblur= "verification()" ><br></p><br> <p>确认:<input type= "text" id= "repassword" onblur= "verification()" ></p><br> <input id= "button" type= "submit" value= "提交" ><br></body><br></html> |
以上就是直播app开发搭建,注册时确定两次密码一致, 更多内容欢迎关注之后的文章
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· ollama系列01:轻松3步本地部署deepseek,普通电脑可用
· 25岁的心里话
· 按钮权限的设计及实现
2021-12-16 短视频平台源码,构建简单的底部导航栏
2021-12-16 android短视频开发,调用相机、相册,压缩图片后上传
2021-12-16 app直播源码,Android 设置系统亮度