这可能是一个特定的问题,但经过一些调试后我陷入了困境。也许一双新鲜的眼睛会看到我失踪的东西。我只发布了相关的代码片段,因为它是一个更大的应用程序。
一切正常,但我不断收到此错误,而且我不确切知道会导致错误的原因以及它如何影响代码。
$('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
defaultView: 'agendaDay',
defaultTimedEventDuration: '00:10:00',
locale: 'ro',
timeFormat:'H:mm',
slotLabelFormat:"HH:mm",
axisFormat: 'H:mm',
navLinks: true,
selectable: true,
selectHelper: true,
allDaySlot: false,
eventClick: function(calEvent, jsEvent, view) {
editEvent(calEvent);
},
eventLimit: true // allow "more" link when too many events
});
console.log('The right one');
$("#starts-at").datetimepicker({
minDate: new Date(),
locale: 'ro'
});
$("#starts-at-edited").datetimepicker({
minDate: new Date(),
locale: 'ro'
});
<script src='vendor/jquery.min.js'></script>
<script src='vendor/bootstrap.min.js'></script>
<script src='vendor/moment.min.js'></script>
<script src='vendor/fullcalendar.js'></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.47/js/bootstrap-datetimepicker.min.js"></script>
<script src='vendor/locale/ro.js'></script>
<script src='calendar.js'></script>