使FullCalendar从嵌套JSON结构获取事件数据
我不是以JSON数组的形式发送事件,而是这样:使FullCalendar从嵌套JSON结构获取事件数据,fullcalendar,Fullcalendar,我不是以JSON数组的形式发送事件,而是这样: {"result":"success", "events":[ {"end":"2012-07-14T11:00:00", "description":"1", "title":"2", "start":"2012-07-14T07:00:00"}, {"end":"2012-07-14T11:00:00", "description":
{"result":"success",
"events":[
{"end":"2012-07-14T11:00:00", "description":"1", "title":"2", "start":"2012-07-14T07:00:00"},
{"end":"2012-07-14T11:00:00", "description":"3", "title":"4", "start":"2012-07-14T07:00:00"}
]}
并通过以下方式接收:
events:{
url:'/sweatiquette/calendar/events/',
type:'POST',
allDayDefault:false,
data:{action:'get'}
}
如果使用此结构发送数据,我想知道是否可以将FullCalendar配置为处理“事件”字段中的数据。使用“事件作为函数”。
获取JSON对象并从中解析事件数组