<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>登录</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/vector.js"></script>
</head>
<body>
<input id="uname" >
<button id="btn">提交</button>
<div id="container">
<div id="output">
<div class="containerT">
<h1>用户登录</h1>
<form action='../微博/微博.html' onsubmit="return fn()">
<input type="text" name="userName" value="admin" />
<input type="password" name="passWord" />
<button type="submit" >登录</button>
</form>
</div>
</div>
</div>
<script type="text/javascript">
$(function(){
Victor("container", "output");
$("#entry_name").focus();
$(document).keydown(function(event){
if(event.keyCode==13){
$("#entry_btn").click();
}
});
});
</script>
<div style="text-align:center;">
</div>
</body>
</html>
将userName,userPass,提交到后台。后台先找userName,存在则比对密码,判断密码是否一致;否则,用户不存在