这是我的JS代码。在启动时,日历是可见的,但是在添加到events[]
数组之后,日历消失了。有人可以帮我了解发生了什么事。
<script>
$(document).ready(function() {
$('#sectionview').fullCalendar({
schedulerLicenseKey: 'CC-Attribution-NonCommercial-NoDerivatives',
defaultDate: new Date(y, m, d),
defaultView: 'agendaWeek',
themeSystem: 'bootstrap3',
minTime: '07:00:00',
maxTime: '22:00:00',
events: [{
id: <?php echo $events['id']; ?>,
course: <?php echo $events['course']; ?>,
room: <?php echo $events['room']; ?>,
},
]
select: function(start, end, jsEvent, view) {
$('#ModalAdd #start').val(moment(start).format('dddd HH:mm'));
$('#ModalAdd #end').val(moment(end).format('dddd HH:mm'));
$('#ModalAdd').modal('show');
},
});
});
</script>