码迷,mamicode.com
首页 > 其他好文 > 详细

时间插件

时间:2017-08-21 20:38:36      阅读:152      评论:0      收藏:0      [点我收藏+]

标签:script   iss   time   common   mis   label   control   for   link   

 ‘/Scripts/Vendor/jquery-ui/jquery-ui.min.js‘,

    <link href="/Content/common/jquery-ui.min.css" rel="stylesheet" />

HTML部分:
<div class="form-group">
<label class="nowDate col-md-2 control-label" >项目开始日期:</label>
<div class="col-md-4">
<input type="text" class="datepicker form-control col-md-3" placeholder="请输入项目开始时间">
</div>
</div>


js部分:
$scope.openModal = function (id) {
var modalInstance = $uibModal.open({
templateUrl: id,
controller: function ($scope, $uibModalInstance) {
//懒加载,时间插件
$timeout(function () {
angular.element(‘.datepicker‘).datepicker();
}, 100);
$scope.ok = function () {
$uibModalInstance.close(‘closed‘);
}
$scope.cancel = function () {
$uibModalInstance.dismiss(‘cancel‘);
}
},
size: ‘lg‘,

});

}

时间插件

标签:script   iss   time   common   mis   label   control   for   link   

原文地址:http://www.cnblogs.com/0280-hnn/p/7406193.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!