-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path4.html
More file actions
30 lines (30 loc) · 787 Bytes
/
4.html
File metadata and controls
30 lines (30 loc) · 787 Bytes
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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="Generator" content="EditPlus®">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<title>Document</title>
<script src="../org/angular.js"></script>
</head>
<body>
<div ng-app="hd" ng-controller="ctrl">
网站开启:<input type="radio" ng-model="status" ng-value="1"/><br/>
网站关闭:<input type="radio" ng-model="status" ng-value="2"/><br/>
{{status}}
<div ng-show="status==2">
<textarea>{{content}}
</textarea>
</div>
</div>
<script>
var m=angular.module('hd',[]);
m.controller("ctrl",['$scope',function($scope){
$scope.status=1;
$scope.content="网站关闭的原因";
}]);
</script>
</body>
</html>