我关注了关于 Adam Shaw 的完整日历的教程,但我无法从谷歌日历中检索事件。这是我的代码:
<!DOCTYPE html>
<html>
<head>
<link href="<?php echo css_url().'fullcalendar.css'; ?>" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo js_url().'jquery.js'; ?>"></script>
<script type="text/javascript" src="<?php echo js_url().'fullcalendar.js'; ?>"></script>
<script type='text/javascript' src='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
})
});
$(document).ready(function() {
$('#calendar').fullCalendar({
events: $.fullCalendar.gcalFeed(
"http://www.google.com/calendar/feeds/username%40gmail.com/public/basic")
});
});
</script>
</head>
<div id='calendar'></div>
</html
你能告诉我有什么问题吗?