更新时间:2023-10-14 23:06:34
在控制器初始化时设置默认值startDate
set default value startDate
when controller initialized
angular
.module('Demo', ['moment-picker'])
.controller('DemoController', ['$scope', function ($scope) {
$scope.startDate = moment();
}]);