bootstrap datepicker 月份無法選中的問題

<span style="font-family: Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);">前幾天就遇到了這種情況,比如今天2015-11-5,點擊選擇月份的時候無法選中10月和11月。</span>

經過向高手請教獲得解決方法:

  在js中找到:

if (year == endYear) {  

months.slice(endMonth).addClass('disabled');  

}

改成

if (year == endYear) {  

months.slice(endMonth + 1).addClass('disabled');  

}

即可



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章