var events;
events = events + "{title:'"+$("#txtEventName").val()+"',start:'2011-04-20',end:'2011-04-21',allDay:false}"
calender.fullcalendar({
events[
the variable here,
]
});
所以我想将这个变量插入到完整的日历“事件”中,我想知道这可能会这样做吗?
答案 0 :(得分:3)
试试这个:
var curEvents = [];
curEvents.push({
title: $("#txtEventName").val(),
start:'2011-04-20',
end:'2011-04-21',
allDay:false
});
calender.fullcalendar({
events: curEvents
});