Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/89.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript fullcalendar在Mozilla和Internet explorer上不起作用_Javascript_Jquery_Fullcalendar - Fatal编程技术网

Javascript fullcalendar在Mozilla和Internet explorer上不起作用

Javascript fullcalendar在Mozilla和Internet explorer上不起作用,javascript,jquery,fullcalendar,Javascript,Jquery,Fullcalendar,我的完整日历无法在internet explorer和mozilla上使用。它在chrome上运行得非常好,但在IE和Moz上却不行。它将显示日历,但不会显示事件,这是获取事件并显示它们的jquery文件 $('#calendar').fullCalendar({ header: { left: 'prev,next today', center: 'title', right: 'month,agendaWeek,agendaDay'

我的完整日历无法在internet explorer和mozilla上使用。它在chrome上运行得非常好,但在IE和Moz上却不行。它将显示日历,但不会显示事件,这是获取事件并显示它们的jquery文件

$('#calendar').fullCalendar({

    header: {

        left: 'prev,next today',
        center: 'title',
        right: 'month,agendaWeek,agendaDay'
    },

    events: "assets/php/json-events.php",

    editable: true,

    eventDrop: function(event, delta) {
        alert(event.title + ' was moved ' + delta + ' days\n' +
            '(should probably update your database)');
    },

    loading: function(bool) {
        if (bool) {
            $('#loading').show();
        } else {
            $('#loading').hide();
        }
    }
});

我设法纠正了这个错误。我的解决方案很简单:所有小于或等于9的月份和日期都应该在数字前加上前缀0


希望这能有所帮助。

我不明白你为什么发布php;如果日历在chrome中工作,那么我们需要看到的是输出。你能提供一个链接吗?我同意@sineteta,如果它在其他浏览器中运行,而不是服务器问题,那就是客户端问题。我们需要查看客户端代码。让我们看看这个网站。你是对的,我用mozilla的firebug查看信息是否被检索到,firebug上是否有信息,但没有显示在日历上,你认为会有什么问题?你需要将实际的js代码发布到JSFIDLE或堆栈溢出中,这样我们才能以简洁的方式看到它,否则没有人会帮助你!您能编辑您的答案以包含工作解决方案吗?无需提供工作解决方案。如果您是一名开发人员,这是不言自明的。