码迷,mamicode.com
首页 > 其他好文 > 详细

10.24 2

时间:2017-10-24 11:15:33      阅读:160      评论:0      收藏:0      [点我收藏+]

标签:oct   htm   密码   fun   func   meta   title   tle   输入   

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<script>
function fnLogin() {
var oUname = document.getElementById("uname")
var oUname = document.getElementById("upass")
if(oUname.value.length<6){
oError.innerHTML="至少需要六位"
}

}
</script>
</head>
<body>
<div class="box">
<h2>登陆</h2>

<div class="input_box">
<input id="uname" type="text" placeholder="请输入用户名">
</div>
<div class="input_box">
<input id="upass" type="password" placeholder="请输入密码">
</div>
<div id="error_box"><br></div>
<div class="input_box">
<button onclick="fnLogin()">登录</button>
</div>
</div>
</body>
</html>

10.24 2

标签:oct   htm   密码   fun   func   meta   title   tle   输入   

原文地址:http://www.cnblogs.com/Sun584125503/p/7722046.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!