博主使用的fullCalendar版本是v4.2.0。
附上插件git地址:fullcalendar插件git地址
初始化日历插件时添加以下日程事件渲染方法:
eventRender: function (info) {//当日程事件渲染时触发
//让title显示HTML内容
$(info.el).html(info.event.title);
}
添加以上代码即可在events数据配置的title属性里面使用HTML标签了。部分配置及效果如下:
博主使用的fullCalendar版本是v4.2.0。
附上插件git地址:fullcalendar插件git地址
初始化日历插件时添加以下日程事件渲染方法:
eventRender: function (info) {//当日程事件渲染时触发
//让title显示HTML内容
$(info.el).html(info.event.title);
}
添加以上代码即可在events数据配置的title属性里面使用HTML标签了。部分配置及效果如下: