0
fullcalendar.jsでこれを使用しましたが、これは静的な値を与えています。 瞬間( "")内のカレンダーに表示される月と年を送信する方法。細かいこれを使用して動作するようにそれだけで助けてください2016年9月、私は月を変更するたびに、そのこのページに私を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>
をリフレッシュを表示します。