從3.3.0版本,你現在可以使用showNonCurrentDates:假的。
$('#calendar_1').fullCalendar({
header: {
left: '',
center: 'title',
right: ''
},
defaultView: 'month',
editable: true,
allDaySlot: true,
selectable: true,
selectHelper: true,
selectOverlap: false,
fixedWeekCount: false,
showNonCurrentDates: false,
select: function (start, end) {
var title = "Available";
var evid = SaveEvent(start, end, '1');
$('#calendar_1').fullCalendar('unselect');
},
eventClick: function (calEvent, jsEvent, view) {
var ev_id = calEvent.ID;
var st_dt = calEvent.start;
var ed_dt = calEvent.end;
infoEventShow('1', ev_id, st_dt, ed_dt);
},
slotMinutes: 15,
events: '/Aircrew/GetEvents/',
eventColor: '#339900'
});
參考https://fullcalendar.io/docs/display/showNonCurrentDates/
你嘗試** [這](http://stackoverflow.com/a/9279293/3639582)** – 2015-04-05 04:35:31
是@ShaunakD我試過了,其實這是不渲染事件,並且我想隱藏單元格,或者至少讓用戶不能點擊那天(在我的應用程序中,用戶可以在點擊日後創建事件,並且我不希望用戶在下個/上個月創建事件日期。) – nirux 2015-04-05 04:45:40