Skip to content

Commit

Permalink
Merge pull request #27 from Danivy/master
Browse files Browse the repository at this point in the history
Homework
  • Loading branch information
zengsn authored Oct 7, 2016
2 parents c9c3a7e + 60cc79b commit 621bd35
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
60 changes: 60 additions & 0 deletions labs/1414080902205/LabForOne.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="http://cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet">
</head>
<title>
REGISTER
</title>
<body>
<div class="Register">
<h2 class="text-center"> Register</h2>
<form id="register">
<div class="form-group">
<label for="username1">Username *</label>
<input type="text" id="username1" class="form-control" />
</div>
<div class="form-group">
<label for="password1">Password *</label>
<input type="password" id="password1" class="form-control"/>
</div>
<div class="form-group">
<label for="repassword">Repeat *</label>
<input type="password" id="repassword" class="form-control"/>
</div>
<div class="form-group">
<label for="nickname">Nickname</label>
<input type="text" id="nickname" class="form-control"/>
</div>
<label for="school">School</label>
<input type="text" id="school" class="form-control"/>
<div class="form-group">
<label for="qq">QQ</label>
<input type="text" id="qq" class="form-control"/>
</div>
<div class="form-group">
<label for="email">Email *
</label><input type="text" id="email" class="form-control"/>
</div>
<div style = "text-align:right;">
<button type="button" class="btn btn-default">Register</button>
</div>
</form>
</div>

</body>
<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 type="text/javascript">
$( ".btn" ).click(function() {
//alert(".btn");
$.ajax({
url: "success.json",
success: function(data){
alert(data.msg);
}});
});
</script>

</html>
1 change: 1 addition & 0 deletions labs/1414080902205/success.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"msg": "����ɹ���"}

0 comments on commit 621bd35

Please sign in to comment.