jquery - 如何在 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 中找不到如何操作。
解决方案
推荐阅读
- sql-server - SQL Server:将多条记录插入联结表
- javascript - 在 querySelectorAll() 中使用项目
- c# - 控制事件管理器不显示任何内容
- perl - perl 中的 UTF-8 到 UTF-16
- python - Tornado 异步简单程序
- javascript - 不和谐机器人命令处理程序问题
- javascript - MetaMask - RPC 错误:错误:[ethjs-rpc] 有效负载的 rpc 错误
- django - 序列化程序和响应数据如何请 Django-rest
- arrays - 打印数组时显示奇怪的输出
- python-3.x - 异步任务池