function CmsNewsList() {
}
CmsNewsList.prototype.initDataPicker = function(){
var startPicker = $('#start-picker');
var endPicker = $('#end-picker');
var todayDate = new Date();
var todayStr = todayDate.getFullYear() + '-' + (todayDate.getMonth()+1) + '-' + todayDate.getDate();
var options = {
'showButtonPanel': true,
'format': 'yy-mm-dd',
'startDate': '',
'endDate': todayStr,
'language': 'zh-CN',
'todayBtn': 'linked',
'todayHighlight':true,
'clearBtn': true,
'autoclose':true,
};
startPicker.datepicker(options);
endPicker.datepicker(options);
};
CmsNewsList.prototype.run = function () {
this.initDataPicker();
};
$(function () {
var news
Bootstrap-datepicker集成Django后台管理时间控件
最新推荐文章于 2024-06-24 09:42:00 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)