javascript - 在 FullCalendar 中以 json 形式获取事件错误 : undefined fonction near $ajax

标签 javascript ajax fullcalendar

我想用一些自定义事件来补充 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/

相关文章:

javascript - 使用ajax传递php变量

javascript - 带有 jsonp 的 jQuery .ajax() 不调用成功回调函数

javascript - 拖动事件时如何禁用弹出窗口?

javascript - AngularJS - 取消时重置数组在范围刷新时具有闪烁效果

javascript - Ajax、长轮询、多用户、聊天到达

javascript - fullcalendar v5.9 中每个资源的标题颜色不同

javascript - 在不使用 jQuery 的情况下为 fullCalendar 编写代码时出现错误

javascript - 有没有办法将 MarkItUp 与客户端解析器和服务器模板一起使用?

javascript - 为什么在 alpha 动画之后图形在 IE 中有丑陋的黑色边框?

javascript - Safari 8 中新打开的对话框高度不正确