xn-month.html
1.3 KB
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
<!DOCTYPE html>
<html ng-app="myApp">
<head lang="en" >
<meta charset="UTF-8">
<title></title>
<link href="../spm_modules/bootstrap-css/1.0.0/bootstrap.css" rel="stylesheet">
<link href="../demo/base.css" rel="stylesheet">
<link href="../directive/style.css" rel="stylesheet">
<script type="text/javascript" src="../spm_modules/jquery/1.7.2/jquery.js"></script>
<script type="text/javascript" src="../spm_modules/angular/1.3.9/angular.js"></script>
<script type="text/javascript" src="../spm_modules/angular-ui/1.0.0/bootstraptpls.js"></script>
<script type="text/javascript" src="../directive/calendars.js"></script>
</head>
<body ng-controller="MyController">
<a href="index.html">返回</a>
<div class="clearfix"></div>
<div xn-year-month class="xn-year-month" ng-model="startPeriodId" data-year-month="yearMonth" name="startPeriodId">
</div>
<h3>使用说明</h3>
<p ></p>
<script type="text/javascript">
angular.module("myApp", ["xn.directive.calendar"])
.controller("MyController", ["$scope","$timeout", function($scope,$timeout) {
$scope.vm={};
$scope.yearMonth="201206";
$timeout(function(){
$scope.yearMonth="201805";
},2000);
}]);
</script>
</body>
</html>