首页 > 解决方案 > 如何在 FullCalendar v5 中触发对给定事件的点击?

问题描述

我有一个 FullCalendar v5 实例,我希望能够打开具有给定事件 ID 的模式以显示来自此类 URL 的详细信息:

https://localhost/calendar?eventId=1

使用 FullCalendar 的第 3 版,这就是我过去使用 jQuery 的方式:

$("#list-event-1").trigger("click");

使用以下 DOM 元素:

<a id="list-event-1" class="fc-time-grid-event fc-v-event fc-event fc-start fc-end fc-draggable fc-resizable">

我在 FullCalendar 的 v5 中找不到如何操作。

标签: jqueryfullcalendar

解决方案


推荐阅读