小编Joh*_*eer的帖子

fullcalendar.js v4-如何在标题中设置html / image?

有谁有解决方案来获取FullCalendar.js v4将标题呈现为html?在新版本上,所有获取元素并将文本替换为html的旧方法均无效。我已经在下面尝试过了:

eventRender: function(info) {
  return $.parseHTML(info.event.title);
Run Code Online (Sandbox Code Playgroud)

半有效-呈现HTML,但缺少该事件的其余html类。我的猜测是,它需要修改完整的info对象,但是设置不起作用:eventRender:function(info){info.event.title = info.el.innerText; 返回信息

html javascript fullcalendar fullcalendar-4

3
推荐指数
1
解决办法
791
查看次数

标签 统计

fullcalendar ×1

fullcalendar-4 ×1

html ×1

javascript ×1