xn-month.html 1.33 KB
<!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 style="width:300px;">
    <div xn-year-month class="xn-year-month" ng-model="startPeriodId"  data-year-month="yearMonth"  name="startPeriodId">
</div>



</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>