Skip to content

Commit

Permalink
#3 提交实验代码
Browse files Browse the repository at this point in the history
  • Loading branch information
mpq1228 committed Oct 20, 2016
1 parent e8842a4 commit 18e9518
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions labs/1406070302213/index.jsp
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>


<!DOCTYPE html>
<html lang="zh-CN">
<head>
<link rel="stylesheet" type="text/css" href="mpq.css"/>
<title>登录</title>
<title>登录</title>
<script type="text/javascript" src="http://code.jquery.com/jquery.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
Expand All @@ -12,20 +18,20 @@
<h1><%=new java.util.Date()%></h1>
</center>
<div id="main_special">
<fieldset><legend>登录</legend>
<fieldset><legend>登录</legend>
<form action="" method="post">
<label for="label1">用&nbsp;&nbsp; 名:</label>
<input type="text" name="name" id="username label1"/><font style="font-size:12px;color:#898983"> *用户名不得超过16位字符</font><br>
<label for="label2">密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码:</label>
<input type="password" name="pw" id="password label2"/><font style="font-size:12px;color:#898983"> *密码不能超过16位字符</font><br>
<input type="submit" name="submit" class="submit" value="登录"/>
<input type="reset" name="reset" class="submit" value="重置"/>
<label for="label1">用&nbsp;&nbsp; 名:</label>
<input type="text" name="name" id="username label1"/><font style="font-size:12px;color:#898983"> *用户名不得超过16位字符</font><br>
<label for="label2">密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码:</label>
<input type="password" name="pw" id="password label2"/><font style="font-size:12px;color:#898983"> *密码不能超过16位字符</font><br>
<input type="submit" name="submit" class="submit" value="登录"/>
<input type="reset" name="reset" class="submit" value="重置"/>
</form>
</fieldset>
</div>
<script type="text/javascript">
$( ".submit" ).click(function(event) {
alert("登录成功");
alert("登录成功");
$.ajax({
url: "success.json"
}).done(function(data){
Expand Down

0 comments on commit 18e9518

Please sign in to comment.