我已尝试过在StackOverFlow上发布的几乎所有解决方案,但似乎无法让它适用于跨域JSON响应
$('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
selectable: true,
editable: false,
eventSources: [
{
url: 'http://www.demo.com/feed'
}
],
eventDrop: function(event, delta) {
alert(event.title + ' was moved ' + delta + ' days\n' +
'(should probably update your database)');
},
loading: function(bool) {
if (bool) $('#loading').show();
else $('#loading').hide();
}
});
});
有没有人让它顺利运作?
干杯