2017-10-07 73 views

回答

-1

此功能沒有在uikit datepicker中實現,但您可以嘗試自己做。嘗試抓取日曆的uikit事件,查看文檔 - 它是show.uk.datepicker和update.uk.datepicker。看看dom中發生了什麼。當你看到datepicker時,運行一個函數,禁用日曆表中tr < td最後兩個孩子(星期六和星期日默認)內的鏈接。

$('.uk-datepicker-table td:nth-child(6), .uk-datepicker-table td:nth-child(7)').each(function() { 
    var replace = $(this).text(); 
    $(this).html(replace).addClass('my-mute-class'); 
}); 
+0

要去試試這個第一個男人。提前致謝。 –

+0

我知道這是便宜的解決方案,但無法發明更快的東西 – cssBlaster21895

相關問題