-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path6.html
More file actions
32 lines (31 loc) · 762 Bytes
/
6.html
File metadata and controls
32 lines (31 loc) · 762 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
31
32
<!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">
<select ng-options="v.value as v.name for v in date" ng-model="pp">
</select>
{{pp}}
</div>
<script>
var m=angular.module('hd',[]);
m.controller("ctrl",['$scope',function($scope){
$scope.pp="12e35";
$scope.date=[
{name:"yudong1",value:"12e33"},
{name:"yudong2",value:"12e34"},
{name:"yudong3",value:"12e35"},
{name:"yudong4",value:"12e36"},
]
}]);
</script>
</body>
</html>