更新时间2019-01-26 19:36:41
<title>登陆界面</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<%-- <link href="<%=path %>/css/page.css" rel="stylesheet" type="text/css" /> --%>
<script type="text/javascript" src="<%=path%>/js/jquery-1.4.4.min.js"/>
<script type="text/javascript" src="<%=path%>/js/jquery.form.js" />
<script type="text/javascript">
function login(){
alert(1);
$("#form0").ajaxSubmit({
url:"<%=path%>/user.action?method=login",
cache:false,
type:"post",
dataType:"text",
success:function(data) {
if(data == 'timeout') {
window.top.location.href="<%=path%>/logout.jsp";
}else {
alert(data);
closeWin();
}
}
});
}
function closeWin(){
window.close();
}
</script>
</head>
<body>
<form name="form0" id="form0" action="" method="post">
用户名:<input type="text" name="use.userName" id="userName"/><br/><br/>
密码:<input type="password" name="user.password" id="password"/><br/><br/>
<input type="button" name="btn" id="btn" onclick="login();" value="确定" />
</form>
</body>
---------------------
上一篇:我的世界hmcl无法加载配置文件
下一篇:我这笔记本我的世界能开光影吗?