标签:lse dem 代码 else auto var orm inpu 数据
1 //初始化时间插件 2 function InitializeTime() { 3 var beginTimeStore = ‘‘; 4 var endTimeStore = ‘‘; 5 $(‘#config-demo‘).daterangepicker({ 6 "timePicker": true, 7 "timePicker24Hour": true, 8 "linkedCalendars": false, 9 "autoUpdateInput": false, 10 "locale": { 11 format: ‘YYYY-MM-DD HH:mm‘, 12 separator: ‘ ~ ‘, 13 applyLabel: "应用", 14 cancelLabel: "取消", 15 resetLabel: "重置", 16 daysOfWeek: [‘日‘, ‘一‘, ‘二‘, ‘三‘, ‘四‘, ‘五‘, ‘六‘], 17 monthNames: [‘一月‘, ‘二月‘, ‘三月‘, ‘四月‘, ‘五月‘, ‘六月‘, 18 ‘七月‘, ‘八月‘, ‘九月‘, ‘十月‘, ‘十一月‘, ‘十二月‘], 19 firstDay: 1 20 } 21 }, function (start, end, label) { 22 beginTimeStore = start; 23 endTimeStore = end; 24 //console.log(this.startDate.format(this.locale.format)); 25 // console.log(this.endDate.format(this.locale.format)); 26 if (!this.startDate) { 27 this.element.val(‘‘); 28 } else { 29 this.element.val(this.startDate.format(this.locale.format) + this.locale.separator + this.endDate.format(this.locale.format)); 30 } 31 }); 32 33 34 }
标签:lse dem 代码 else auto var orm inpu 数据
原文地址:https://www.cnblogs.com/Spinoza/p/8868176.html