我想用一些自定义事件来补充 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
});
});
最佳答案
最后我发现我加载的是精简版的Jquery(我想象是一个糟糕的剪切/粘贴操作),它不包含ajax功能。
希望对大家有帮助
关于javascript - 在 FullCalendar 中以 json 形式获取事件错误 : undefined fonction near $ajax,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55202561/