FullCalendar TypeError:$(...)。fullCalendar不是函数 [英] FullCalendar TypeError: $(...).fullCalendar is not a function
问题描述
< link href =' 我试图将fullCalendar 2.1.1放入其中, /css/fullcalendar.css'rel ='stylesheet'/>
< link href ='/ css / fullcalendar.min.css'rel ='stylesheet'/>
< link href ='/ css / fullcalendar.print.css'rel ='stylesheet'media ='print'/>
< script src ='/ js / moment.min.js'>< / script>
< script src ='/ js / jquery.min.js'>< / script>
< script src ='/ js / fullcalendar.min.js'>< / script>
< script src =/ js / jquery-ui.custom.min.js>< / script>
< script>
$(document).ready(function(){
$('#calendar')。fullCalendar({
defaultDate:'2014-09-12',
editable:true,
eventLimit:true,//当事件太多时允许更多链接
});
});
< / script>
但是当我去尝试打开它时,我得到这个错误
$ b / b
SyntaxError:missing)after argument list ...')。replace(// g,)。replace(/ \\\
/ g, )}函数P(t){returnt.replace(/
TypeError:$(...)。fullCalendar不是函数
eventLimit:true,//当事件太多时允许更多链接
有人可以帮助我吗?它仍然无法正常工作。
我认为你有问题与js尝试下面的url可能会解决你的问题, / p>
< script src ='http://fullcalendar.io/js/fullcalendar-2.1.1/lib/moment.min .js'>< / script>
< script src ='http://fullcalendar.io/js/fullcalendar-2.1.1/lib/jquery.min.js'>< / script> ;
< script src =http://fullcalendar.io/js/fullcalendar-2.1.1/lib/jquery-ui.custom.min.js>< / script>
< S cript src ='http://fullcalendar.io/js/fullcalendar-2.1.1/fullcalendar.min.js'>< / script>
< script>
$(document).ready(function(){
$('#calendar')。fullCalendar({
defaultDate:'2014-09-12',
editable: true,
eventLimit:true,//当事件太多时允许更多链接
});
});
< / script>
如果上述代码有效,请下载脚本标记中使用的js文件
i was trying to put fullCalendar 2.1.1 but it is not working...
<link href='/css/fullcalendar.css' rel='stylesheet' />
<link href='/css/fullcalendar.min.css' rel='stylesheet' />
<link href='/css/fullcalendar.print.css' rel='stylesheet' media='print' />
<script src='/js/moment.min.js'></script>
<script src='/js/jquery.min.js'></script>
<script src='/js/fullcalendar.min.js'></script>
<script src="/js/jquery-ui.custom.min.js"></script>
<script>
$(document).ready(function() {
$('#calendar').fullCalendar({
defaultDate: '2014-09-12',
editable: true,
eventLimit: true, // allow "more" link when too many events
});
});
</script>
but when i go to try open it i get this errors
SyntaxError: missing ) after argument list ..."'").replace(/"/g,""").replace(/\n/g,"")}function P(t){returnt.replace(/
TypeError: $(...).fullCalendar is not a function
eventLimit: true, // allow "more" link when too many events
Can someone help me? i followed the Basic Usage Doc but it still doesn't work.
I think you have problem with js try the below urls it may solve your problems,
<script src='http://fullcalendar.io/js/fullcalendar-2.1.1/lib/moment.min.js'></script>
<script src='http://fullcalendar.io/js/fullcalendar-2.1.1/lib/jquery.min.js'></script>
<script src="http://fullcalendar.io/js/fullcalendar-2.1.1/lib/jquery-ui.custom.min.js"></script>
<script src='http://fullcalendar.io/js/fullcalendar-2.1.1/fullcalendar.min.js'></script>
<script>
$(document).ready(function() {
$('#calendar').fullCalendar({
defaultDate: '2014-09-12',
editable: true,
eventLimit: true, // allow "more" link when too many events
});
});
</script>
If the above code works then download the js files used in script tag
这篇关于FullCalendar TypeError:$(...)。fullCalendar不是函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!