gpt4 book ai didi

jquery - 关于实现的完整日历问题

转载 作者:搜寻专家 更新时间:2023-10-31 21:53:19 25 4
gpt4 key购买 nike

我在实现 FullCalendar 时遇到问题...而且我想,我在 http://arshaw.com/fullcalendar/docs/usage/ 做了所有关于“基本用法”主题的事情。为什么那段代码没有出现在我的 .html 上?

<!DOCTYPE html SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>
Callendar Test
</title>
<link rel='stylesheet' type='text/css' href='fullcalendar.css' />

<script type="text/javascript" src="jquery.js"></script>

<script type="text/javascript" src='fullcalendar.js'></script>
<script type="text/javascript">
$(document).ready(function() {

// page is now ready, initialize the calendar...

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


})

});
</script>
</head>
<body>
<div id='calendar'></div>


</body>
</html>

有什么解决办法吗?

P.S.:我下载了 Jquery 文件(版本 1.x)并将其放在与我的 HTML 页面相同的文件中。

错误:

Unknown property 'zoom'.  Declaration dropped. fullcalendar.css:107
18:50:38.058 Expected 'none' or URL but found 'alpha('. Error in parsing value for 'filter'. Declaration dropped. fullcalendar.css:133
18:50:38.058 Error in parsing value for 'background-image'. Declaration dropped. fullcalendar.css:213
18:50:38.058 Error in parsing value for 'background-image'. Declaration dropped. fullcalendar.css:214
18:50:38.058 Error in parsing value for 'background-image'. Declaration dropped. fullcalendar.css:215
18:50:38.058 Expected 'none' or URL but found 'alpha('. Error in parsing value for 'filter'. Declaration dropped. fullcalendar.css:255
18:50:38.058 Expected 'none' or URL but found 'alpha('. Error in parsing value for 'filter'. Declaration dropped. fullcalendar.css:414
18:50:38.059 Expected declaration but found '*'. Skipped to next declaration. fullcalendar.css:532
18:50:38.059 Expected 'none' or URL but found 'alpha('. Error in parsing value for 'filter'. Declaration dropped. fullcalendar.css:575
18:50:38.059 Error in parsing value for 'display'. Declaration dropped. fullcalendar.css:580
18:50:38.092 ReferenceError: moment is not defined fullcalendar.js:12
18:50:38.094 The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol. FullCalendar.html
18:50:38.116 TypeError: $(...).fullCalendar is not a function

这是我的目录:

enter image description here

最佳答案

以防万一其他人通过 Google 找到此主题并遇到同样的问题:如果您正在使用 FullCalendar 的托管库,您必须在 之前包含 moment.js(托管库似乎不可用,因此您必须下载它) em> 你包含了 fullcalendar.js 文件。例如:

<script type="text/javascript" src="scripts/moment.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/fullcalendar/2.0.1/fullcalendar.min.js"></script>

FullCalendar 显然在实例化之前就已经引用了 Moment 对象。

希望能帮到别人。

关于jquery - 关于实现的完整日历问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21367623/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com