I imported it as shown below:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery-3.1.1.min.js"></script>
<script type="text/javascript" src="js/moment.js"></script>
<script type="text/javascript" src="js/fullcalendar.js"></script>
<script type="text/javascript" src="js/locale/ko.js"></script>
<link rel="stylesheet" href="css/fullcalendar.css">
<link rel="stylesheet" href="css/fcImportantCSS.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="css/adminMainPage.css">
And I wrote the following.
HTML:
<div id="calendarContainer" style="display:none">
<input type="hidden" value="" id="ri_startDate">
<input type="hidden" value="" id="ri_endDate">
<div id="calendar"></div>
</div>
JS:
$('#calendar').fullCalendar({
header: {
center: "title",
left: "prev",
right: "next"
},
lang: 'ko',
editable: true,
dayClick: function(date, allDay, view) // 일 클릭시 발생
{
var dateFormat = date.format('YYYY-MM-DD');
if (confirm('휴진으로 등록 하시겠습니까?')) {
} else {
alert('bye ~ ');
}
}
});
It worked well when tested, but now it does not work.
The following error has occurred:
Uncaught TypeError: $(...).fullCalendar is not a function
Why am I getting this error?
How to fix the code to catch this error?
I need your help, and please tell me your opinion.
user8057627
source
share