我想使用某些自定义事件来更新FullCalendar,每次我尝试使用Ajax或Json events
时,都会收到这个错误。
Uncaught TypeError: undefined is not a function near (...$.ajax...)
下面是我的FullCalendar的javascript代码:
$(function() {
// page is now ready, initialize the calendar..
$('#calendar').fullCalendar({
themeSystem: 'bootstrap4',
header:{
left: 'month,agendaWeek,agendaDay',
center: 'title',
right: 'prev,today,next'
},
defaultView: 'month',
weekNumbers: true,
weekNumberTitle: "Week",
slotLabelFormat: 'H:mm',
nowIndicator: true,
navLinks: true,
events: getEvents
});
});
发布于 2019-03-16 23:40:08
最后,我发现我加载的是精简版的Jquery (我想这是一个糟糕的剪切/粘贴操作),它不包含ajax函数。
我希望它能帮助一些人
https://stackoverflow.com/questions/55202561
复制相似问题