当我尝试在保存后从 Fullcalendar 重新获取事件时,我在 fullcalendar.min.js:6 中收到以下错误。 为什么我会收到此错误?
Uncaught TypeError: Cannot read property 'format' of null
我使用事件作为 json feed:
events: './scripts/events.php?user_id='+user_id,
最佳答案
我收到了同样的错误消息,我解决了这个问题。
在我的代码中,问题是在页面加载时我的日历 div 容器被隐藏。我需要通过单击按钮来显示此日历,因此在页面加载时我将日历 div 容器设置为显示,并在页面加载完成后隐藏该容器。
关于php - FullCalendar refetchEvents 无法读取 null 的属性 'format',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33915022/