Home  >  Article  >  Backend Development  >  datetimepicker如何让它显示年视图

datetimepicker如何让它显示年视图

WBOY
WBOYOriginal
2016-06-13 12:16:071367browse

datetimepicker怎么让它显示年视图啊
http://www.bootcss.com/p/bootstrap-datetimepicker/
里面有个年视图,求各位大神指点下改怎么写

------解决思路----------------------

$(".form_datetime").datetimepicker({format: 'yyyy-mm',autoclose: true,startView:3,minView:3,todayHighlight:true});


这是我根据他提供的参数做的设置,但是有点小问题,高亮显示不是当前月份
------解决思路----------------------
观察了一下它提供的示例代码,当 startView 为 3 时,即便 todayHighlight 为真 也不会高亮当前月
必须点击 todayBtn 按钮后才会高亮当前月。而其他的状态没有问题

这应该是他的一个bug

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn