2
, 나는 XML 파일에서 이벤트를로드 싶습니다 나는이 코드를 사용하고 있습니다 : XML 파일에서XML에서 FullCalendar로 이벤트를로드하는 방법은 무엇입니까? 내가이 상황에있어
events: function(start, end, callback) {
$.ajax({
url: '/contracts/'+contract_id+'.xml',
dataType: 'xml',
data: {
// our hypothetical feed requires UNIX timestamps
start: Math.round(start.getTime()/1000),
end: Math.round(end.getTime()/1000)
},
success: function(doc) {
var events = [];
$(doc).find('contract').each(function() {
events.push({
title: $(this).attr('week-mon-hours'),
start: $(this).attr('week-mon-hours') // will be parsed
});
});
callback(events);
}
});
},
를 내가 주간 시간 스키마를 가지고 내가 삽입 할 달력에 매주 스키마가 반복됩니다. 어떻게하면됩니까?