Skip to content

Commit

Permalink
Merge pull request #174 from ChowWd/master
Browse files Browse the repository at this point in the history
#3 提交实验代码
  • Loading branch information
zengsn authored Oct 14, 2016
2 parents ef54499 + 0657282 commit df77d85
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions labs/1414080902221/index.jsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<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 rel="stylesheet" type="text/css" href="styles.css">
-->
</head>

<body>
<%= new java.util.Date() %>
<form id="regist">
<div class="form-group">
<label for="UserName">UserName</label>
<input type="text" class="form-control" id="UserName" placeholder="UserName">
</div>
<div class="form-group">
<label for="Password1">Password</label>
<input type="password" class="form-control" id="Password" placeholder="Password">
</div>
<button type="submit" class="btn btn-default">Submit</button>
</form>
<script src="http://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script>
<script src="http://cdn.bootcss.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="javascript.js" charset="UTF-8" type="text/javascript"> </script>
<script>
$( "#regist" ).submit(function() {
$.ajax({
url: "success.json",
success: function(data){
alert(data.msg);
}});
});
</script>
</body>
</html>

0 comments on commit df77d85

Please sign in to comment.