简体   繁体   English

如何使用javascript,jquery,html和css制作基本的活动日历?

[英]How to make a basic event calendar with javascript, jquery, html and css?

I've been trying to build a basic calendar with some already predefined events on it. 我一直在尝试使用一些已经预定义的事件构建一个基本日历。 For this calendar there shouldn't be an option to add an event, meaning the events should be already defined in the code. 对于此日历,不应该有添加事件的选项,这意味着事件应该已经在代码中定义。

I've already tried to use jquery datepicker but I can't add events to it, I was only able to change the color of a few days. 我已经尝试过使用jquery datepicker,但我无法添加事件,我只能改变几天的颜色。

https://fullcalendar.io/ Try out this plugin, it should fit your needs. https://fullcalendar.io/试试这个插件,它应该符合你的需求。

$('#calendar').fullCalendar({
    editable: false
    // put further options and callbacks here
})

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM