如何使用索引文件查看完整日历?

how to view full calendar using index file?

以下是我用来显示完整日历视图的代码。但它不起作用。

<html>
<head>
    <link href="fullcalendar.css" rel="stylesheet" />
    <link href="scheduler.css" rel="stylesheet" />
    <script src="moment.js"></script>
    <script src="jquery.js"></script>
    <script src="fullcalendar.js"></script>
    <script src="scheduler.js"></script>
</head>
<body>
    <div id="calendar"></div>
</body>
</html>

您必须使用

在主体末尾的脚本标记中初始化完整日历
<script>
$(document).ready(function() {
    // page is now ready, initialize the calendar...

    $('#calendar').fullCalendar({
        // put your options and callbacks here
    })

});
</script>

此外,您确定脚本文件和样式表文件位于您网页的同一目录中吗?

您可以在 FullCalendar Docs

上找到文档