2014-01-31 24 views

回答

0

評論這種活性功能你的js。

if (prevMonth.valueOf() === currentDate) { 
      clsName += ' active'; 
    } 

喜歡這個

// if (prevMonth.valueOf() === currentDate) { 
    //   clsName += ' active'; 
    // } 

---------------月禁用 - 評這種活性功能------------

// if (currentYear === year) { 
    //   months.eq(this.date.getMonth()).addClass('active'); 
    // } 

---------------年禁用 - 只是刪除活動類在此代碼------------

html += '<span class="year'+(i === -1 || i === 10 ? ' old' : '')+(currentYear === year ? ' ' : '')+'">'+year+'</span>'; 

這是我的Screenshort

enter image description here

+1

有像'cls.push沒有代碼( '激活');'在引導-datepicker.js –

+0

給我你的js代碼 –

+0

自舉日期選擇器(HTTP: //pastebin.com/SUCPkxBa) –

相關問題