appointments
배열의 객체를 얻으려면 어떻게해야합니까? appointments.id = calEvent.id
?자바 스크립트 배열에서 객체 가져 오기 where 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
}
'calEvent'로 전달되는 객체는 무엇입니까? – 0x499602D2
jQuery weekcalendar 플러그인의 캘린더 이벤트입니다. calEvent.id는 appointments.id 중 하나와 같습니다. – doonot