私は基本的な FullCalendar をやっています。その月にイベントがあるにもかかわらず、カレンダーが最初に空白になったとき。次の月に移動してから現在の月に戻ると、イベントが表示され、イベントのある他のすべての月は、それらの月に到達すると適切に表示されます。昨年も同様の質問がありましたが、有効な解決策はありませんでした。
カレンダーを新しいウィンドウで開いています。以下は、関連するカレンダーの html および js コードです。カレンダーをメイン ページに配置すると、正しく開きます。この問題は、新しいウィンドウを開いてカレンダーを入れたときにのみ発生します。
//from calendar.html
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" src="fullcalendar.js"></script>
<link href="fullcalendar.css" rel="stylesheet">
</head>
<body>
<script src="calendar-script.js" type="text/javascript"></script>
<div id="calendar"></div>
</body>
</html>
//from calendar-script.js
(function() {
$(document).ready(function($) {
//code to get the event data and generate the eventsArray
$('#calendar').fullCalendar({
events: eventsArray
});
});
})();