javascript - Comment le plug-in de calendrier daterangepicker modifie-t-il la position de la période?
高洛峰
高洛峰 2017-05-19 10:39:33
0
1
538

Comment changer la position de la période dans le plug-in de calendrier daterangepicker ?

Je souhaite mettre cette période de raccourci à gauche. Le paramètre 'open':'left' ne fonctionne pas

Voici mon code d'appel :

 $('#cjsj').daterangepicker({
                                maxDate : moment(),  
                                showDropdowns : true,
                                showWeekNumbers : false, 
                                timePicker12Hour : false, 
                                ranges : {
                                    '今日': [moment().startOf('day'), moment()],
                                    '昨日': [moment().subtract('days', 1).startOf('day'), moment().subtract('days', 1).endOf('day')],
                                    '最近7日': [moment().subtract('days', 6), moment()],
                                    '最近30日': [moment().subtract('days', 29), moment()]
                                },
                                    locale : {
                                    applyLabel : '确定',
                                    cancelLabel : '取消',
                                    fromLabel : '起始时间',
                                    toLabel : '结束时间',
                                    customRangeLabel : '自定义',
                                    daysOfWeek : [ '日', '一', '二', '三', '四', '五', '六' ],
                                    monthNames : [ '一月', '二月', '三月', '四月', '五月', '六月',
                                            '七月', '八月', '九月', '十月', '十一月', '十二月' ],
                                    firstDay : 1
                                }
                                }, function(start, end, label) {

                    console.log(start.toISOString(), end.toISOString(), label);

                  });

Merci

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

répondre à tous(1)
左手右手慢动作

As-tu perdu ton s ?

opens : 'left',
Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!