$('#calendar').fullCalendar({
defaultDate: moment(),
defaultView: 'agendaWeek',
forceEventDuration: true, // too lazy to specify end times
editable: true,
events: [{
title: 'Sally event',
start: moment().add(1, 'day'),
person: 'sally'
}, {
title: 'Sally event',
start: moment().add(2, 'day').add(125, 'minute'),
person: 'sally'
}, {
title: 'Bob event',
start: moment().add(1, 'day'),
person: 'bob'
}, {
title: 'Bob event',
start: moment().add(2, 'day').add(150, 'minute'),
person: 'bob'
}],
eventOverlap: function(still, moving) {
// could be event.color or whatever uniquely identifies the person the event is associated to
return still.person != moving.person;
}
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.14.1/moment.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.0.0/fullcalendar.min.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.0.0/fullcalendar.min.css" rel="stylesheet" />
<div id='calendar'></div>
ありがとう使用することができます!これは私が探していた解決策です! – user3013163