Fullcalendar活动网址在Safari浏览器中不起作用

时间:2015-06-16 10:46:28

标签: fullcalendar

在Fullcalendar事件中,没有在safari浏览器中显示为尝试多种方式但URL无法正常工作。

$(document).ready(function() {
    var siteurl = 'http://localhost/fullcalendar/events.php';
    var date = new Date();
    var d = date.getDate();
    var m = date.getMonth();
    var y = date.getFullYear();

    $('#calendar').fullCalendar({
        header: {
            left: 'prev,next today',
            center: 'title',
            right: 'month,basicWeek,basicDay'
        },
        editable: true,
        eventLimit: true, // allow "more" link when too many events
        eventSources: [{
            url: 'http://localhost/fullcalendar/events.php',
            type: 'POST',
            data: {},
            error: function () {
                alert('There was an error while fetching events!');
            }
        }]
    });
});

0 个答案:

没有答案