Calendar Jquery完整日历未呈现

Calendar Jquery完整日历未呈现,calendar,fullcalendar,Calendar,Fullcalendar,我有以下代码将事件呈现到Jquery完整日历中 代码将事件作为对象返回,但我不知道如何呈现事件..请帮助我整理 <script> $(document).ready(function(){ var pageUrl = '<%=ResolveUrl("~/xtest.aspx")%>'; $('#calendar').fullCalendar({ theme: true, color: 'red', header: { left: 'prev,next', ce

我有以下代码将事件呈现到Jquery完整日历中

代码将事件作为对象返回,但我不知道如何呈现事件..请帮助我整理

  <script>
$(document).ready(function(){
var pageUrl = '<%=ResolveUrl("~/xtest.aspx")%>';
 $('#calendar').fullCalendar({
 theme: true,
 color: 'red',
 header: { left: 'prev,next', center: 'today,title', right: 'agendaDay,agendaWeek,month' },
 events: function(start, end, timezone, callback) {
       $.ajax({
            type: 'POST',
            url: pageUrl+"/GetEvents",
            data: '{Start: "' + start + '",End: "' + end + '"}',
            contentType: "application/json; charset=utf-8",
            dataType: 'json',
            success: function(response){
            callback(response.d);
            }
        });
        }
   }); 
});
<script>

与其将事件用作函数,不如将其用作json提要,如下所示:events:pageUrl+/GetEvents?我想在monthwise之前呈现事件..在month上更改函数运行并仅获取特定月份的事件..那么为什么不使用'defaultView:'month',并从标头中删除agendaDay,agendaWeek:{right:'…}?您为什么返回response.d而不是response?
[
            {
                title: 'All Day Event',
                start: '2014-09-01'
            },
            {
                title: 'Long Event',
                start: '2014-09-07',
                end: '2014-09-10'
            },
            {
                id: 999,
                title: 'Repeating Event',
                start: '2014-09-09T16:00:00'
            },
            {
                id: 999,
                title: 'Repeating Event',
                start: '2014-09-16T16:00:00'
            },
            {
                title: 'Conference',
                start: '2014-09-11',
                end: '2014-09-13'
            },
            {
                title: 'Meeting',
                start: '2014-09-12T10:30:00',
                end: '2014-09-12T12:30:00'
            },
            {
                title: 'Lunch',
                start: '2014-09-12T12:00:00'
            },
            {
                title: 'Meeting',
                start: '2014-09-12T14:30:00'
            },
            {
                title: 'Happy Hour',
                start: '2014-09-12T17:30:00'
            },
            {
                title: 'Dinner',
                start: '2014-09-12T20:00:00'
            },
            {
                title: 'Birthday Party',
                start: '2014-09-13T07:00:00'
            },
            {
                title: 'Click for Google',
                url: 'http://google.com/',
                start: '2014-09-28'
            }
        ]