-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbootstrap.html
63 lines (60 loc) · 3.33 KB
/
bootstrap.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title></title>
<script src="../Js/angular.js"></script>
<link rel="stylesheet" href="bootstrap.css">
<script src="Form.js"></script>
<style>
/*div{border: 1px solid #00aa00}*/
</style>
</head>
<body ng-app="UserInfoModule">
<div class="panel panel-primary">
<div class="panel-heading">
<div class="panel-title">双向数据绑定</div>
</div>
<div class="panel-body">
<div class="row">
<div class="col-md-12">
<form ng-controller="UserInfoCtrl" class="form-horizontal" role="form">
<div class="form-group">
<label class="col-md-2 control-label">
邮箱
</label>
<div class="col-md-10">
<input type="email" class="form-control" placeholder="请输入您的邮箱地址" ng-model="userInfo.email">
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">
密码
</label>
<div class="col-md-10">
<input type="password" class="form-control" placeholder="请输入您的密码" ng-model="userInfo.password">
</div>
</div>
<div class="form-group">
<div class="col-md-offset-2 col-md-10">
<div class="checkbox">
<label><input type="checkbox" ng-model="userInfo.autoLogin">自动登录</label>
</div>
</div>
</div>
<div class="form-group">
<div class="col-md-offset-2 col-md-10">
<button class="btn btn-default" ng-click="getFormData()">获取Form表单的值</button>
<button class="btn btn-default" ng-click="setFormData()">设置Form表单的值</button>
<button class="btn btn-default" ng-click="restForm()">重置Form表单的值</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</body>
<script type="text/javascript">
</script>
</html>