0
在fullcalendar.js中,我使用了这个,但在此我给出了静态值。 我们如何发送时间内日历上显示的月份和年份(“”)。因此,它的工作正常使用该只每当我改变那么一个月刷新其rdirecting我到这个页面如何获取日历上显示的月份和年份
<script>
$(document).ready(function() {
$('#calendar').fullCalendar({
height: 350,
contentHeight: 300,
aspectRatio: 2,
eventLimit: 6,
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay,listMonth'
},
defaultDate: '<?=date("Y-m-d")?>',
navLinks: false, // can click day/week names to navigate views
businessHours: false, // display business hours
editable: false,
eventLimit: true,
events: [
{
title: '',
start: '',
color: '#ff5c29',
allDay : true,
eventColor: '#000'
},
<?php }?>
<?php foreach($records as $record){ ?>
{
title: '',
start: '',
overlap: false,
color: '',
],
});
var previousDate = moment("2016-09");
$('#calendar').fullCalendar('gotoDate', previousDate);
});
</script>
请帮助显示2016年9月。