简体   繁体   English

如何在bootstrap-datepicker中显示多个月

[英]How to show multiple months in bootstrap-datepicker

How to show two months in a single view of bootstrap-datepicker. 如何在bootstrap-datepicker的单个视图中显示两个月。 Please find the sample code from the following link. 请从以下链接中找到示例代码。

JSFiddle Link JSFiddle链接

$("#datepicker").datepicker();

This will show two months in a single view : 这将在一个视图中显示两个月:

<script>
    $( function() {
        $( "#datepicker" ).datepicker({
            numberOfMonths: 2
        });
    } );
</script>

<p>Date: <input type="text" id="datepicker"></p>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM