在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!');
}
}]
});
});