帮我写一个带有日历插件的HTML
时间: 2024-01-01 09:04:54 浏览: 35
<!DOCTYPE html>
<html>
<head>
<title>Calendar Plugin</title>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.4.0/fullcalendar.min.css" rel="stylesheet" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.4.0/fullcalendar.min.js"></script>
<script>
$(document).ready(function() {
$('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
defaultDate: '2021-06-01',
editable: true,
eventLimit: true, // allow "more" link when too many events
events: [
{
title: 'Event 1',
start: '2021-06-01'
},
{
title: 'Event 2',
start: '2021-06-07',
end: '2021-06-10'
},
{
title: 'Event 3',
start: '2021-06-09T12:30:00',
allDay: false // will make the time show
},
{
title: 'Event 4',
start: '2021-06-10T16:30:00'
},
{
title: 'Event 5',
start: '2021-06-12T10:30:00'
},
{
title: 'Event 6',
start: '2021-06-15',
end: '2021-06-17'
},
{
title: 'Event 7',
start: '2021-06-15T10:30:00',
allDay: false // will make the time show
},
{
title: 'Event 8',
start: '2021-06-22'
},
{
title: 'Event 9',
start: '2021-06-28T10:30:00',
allDay: false // will make the time show
}
]
});
});
</script>
</head>
<body>
<div id='calendar'></div>
</body>
</html>
相关推荐
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)