angular.js时间插件
Html部分 <form name="dateForm" class="form-inline"> |
Js引用: <script src="../../js/angular.min.js"></script> <script src="../../js/newScreen/resources/bootstrap.min.js"></script> css引用: <link href="../../css/newScreen/bootstrap.min.css" rel="stylesheet">
|
申明部分: var app = angular.module('controlCenter', ['daterangepicker']);
|
初始化时间:
|
使用:(angular.js事件监听)$scope.$watch('datePickerDate', function (newVal, oldVal) { }) |
angular.js自定义时间戳转时间filer
定义: var app = angular.module('controlCenter', []);
|
使用: app.controller('controlCenterCtrl', ["$scope", "$http", "$filter", function ($scope, $http, $filter) { $filter("formatDatefilter")(时间戳)
}) |