我使用fullcalendar进行活动 [英] I use fullcalendar to make the event

查看:258
本文介绍了我使用fullcalendar进行活动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


fullcalendar.min.js:6 Uncaught TypeError

使用fullcalendar创建事件,但存在这样的问题: :无法读取属性
'stripTime'未定义






<

  var a ='<?php echo $ class_id?>'$(document).ready(function(){$( '#event')。fullCalendar({header:{left:'prev,next today',center:'title',right:'month,agendaWeek,agendaDay'},allDayDefault:true,editable:false,events:{url :events /+ a,},});});  

h2_lin>解决方案

你能提供更多的上下文吗?包括哪些事件。很可能事件的开始或结束属性设置不正确,这就是为什么你会收到此错误。


I use fullcalendar to make the event , but there is a problem like this:

fullcalendar.min.js:6 Uncaught TypeError: Cannot read property 'stripTime' of undefined

js

var a ='<?php echo $class_id?>'  
    $(document).ready(function() {  
        $('#event').fullCalendar({
            header: {
                left: 'prev,next today',
                center: 'title',
                right: 'month,agendaWeek,agendaDay'
            },
            allDayDefault: true,
            editable: false,
            events: {
                url: "events/" + a ,
            },
        });
    });

解决方案

Can you provide more context? What events are being included. Most likely the start or end properties of the event is not setup properly which would be why you're getting this error.

这篇关于我使用fullcalendar进行活动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆