我不能看到我尝试使用fullCalendar的问题,我已经阅读了前面所有的问题和答案,它们通常有两个jquery或脚本序列中的一个错误。有人能告诉我我做错了什么吗?(我在检查时使用了旧版本的库)。
<link href="~/Scripts/plugins/fullcalendar/fullcalendar.css" rel="stylesheet" />
<div id='calendar'></div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.3/jquery.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.11.2/moment.min.js"></script>
<script src="~/Scripts/plugins/fullcalendar/fullcalendar.js"></script>
<script>
$(document).ready(function() {
// page is now ready, initialize the calendar...
$('#calendar').fullCalendar({
// put your options and callbacks here
})
});
</script>发布于 2017-03-26 17:12:30
布局页面中有一个冲突的jquery库,这是通过使用这里的答案解决的:stackoverflow.com/questions/528241/how-do-i-run-different-versions-of-jquery-on-the-same-page
我在日历页上创建了一个无冲突的jQuery
<script src="jQuery2.2.3.js"></script>
<script>
jq223 = jQuery.noConflict(false);
</script>并将所有脚本代码$替换为jq223,如答案jq223("#id").hide();所示
发布于 2017-03-26 02:56:02
它在jsfiddle中工作:https://jsfiddle.net/uqf1q2f7/
也许控制台给了您一个提示,资源路径不正确,或者您没有将<div id='calendar'></div>放入body
https://stackoverflow.com/questions/43020438
复制相似问题