如何获取appointments
数组中的对象,在哪里appointments.id = calEvent.id
?
appointments.push({
id: id,
start: startFormatted,
end: endFormatted,
title: '<b>' + title + '</b><br><div id="event_body">' + body + '</div>',
userId: userid,
categoryId: categoryId,
counterId: counter
});
eventRender : function(calEvent, $event) {
var id = calEvent.id;
// get the object in the appointments-array where appointments.id = calEvent.id
}