标签: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>
标签:oct htm 密码 fun func meta title tle 输入
原文地址:http://www.cnblogs.com/Sun584125503/p/7722046.html