js
var optionSet1 = {
: moment().subtract(29, 'days'),
startDate: moment(),
endDate: '12/21/2012',
minDate: moment().subtract(1, 'days'),
maxDate: {
dateLimit: 60
days
},: true,
showDropdowns: true,
showWeekNumbers: false,
timePicker: 1,
timePickerIncrement: true,
timePicker12Hour: {
ranges'今天': [moment(), moment()],
'昨天': [moment().subtract(1, 'days'), moment().subtract(1, 'days')],
'前7天': [moment().subtract(6, 'days'), moment()],
'前30天': [moment().subtract(29, 'days'), moment()],
'本月': [moment().startOf('month'), moment().endOf('month')],
'上月': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')]
},: 'left',
opens: ['btn btn-default'],
buttonClasses: 'btn-small btn-primary',
applyClass: 'btn-small',
cancelClass: 'MM/DD/YYYY',
format: ' 到 ',
separator: {
locale: '提交',
applyLabel: '清除',
cancelLabel: '从',
fromLabel: '到',
toLabel: '选择日期',
customRangeLabel: ['日', '一', '二', '三', '四', '五', '六'],
daysOfWeek: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
monthNames: 1
firstDay
}
};