我在下面编写了代码,我可以看到正在显示的日历,但不会显示事件本身。它从Google日历中获取事件。现在我觉得我错过了一些东西,但是当我转到我的项目名称旁边的Google Developer Console时,我看到该请求正在进行,但也会显示相同数量的错误。 我有两个问题
<html>
<head>
<link href="assets/fullcalendar/fullcalendar.css" rel="stylesheet" type="text/css">
<link href="assets/fullcalendar/fullcalendar.print.css" rel="stylesheet" type="text/css" media='print'>
<!----- jQuery and Moment must be loaded before FullCalendar's JavaScript. ----->
<script type='text/javascript' src='assets/fullcalendar/lib/jquery.min.js'></script>
<script type='text/javascript' src='assets/fullcalendar/lib/moment.min.js'></script>
<script type='text/javascript' src='assets/fullcalendar/fullcalendar.min.js'></script>
<script type='text/javascript' src='assets/fullcalendar/gcal.js'></script>
<script type='text/javascript'>
$(document).ready(function() {
// page is now ready, initialize the calendar...
$('#calendar').fullCalendar({
// put your options and callbacks here
googleCalendarApiKey: 'AIzaSyCqhW82EulkhOCnAWMzLJuoaT2PzMvmIig',
// Employee Calendar
events: '0bhtj4inq9423divk026c6ags4@group.calendar.google.com',
weekends: false, // will hide saturdays and Sundays
header: {
left: 'prev, next',
center: 'title',
right: 'month',
}
});
});
</script>
</head>
<body>
<!-- div above displays Calendar -->
<div id="calendar"></div>
</body>
</html>
&#13;
答案 0 :(得分:0)
我修复了我的问题,首次创建公共API时是URL模式。我做错了。我在谷歌找到了一个帮助我的链接。一旦你打开网站前往大约6/7的方向。您将看到“网址格式”框。 https://developers.google.com/console/help/new/#cappingusage