gpt4 book ai didi

fullcalendar - 如何更改 fullcalendar 中的列时间格式?

转载 作者:行者123 更新时间:2023-12-04 04:51:24 29 4
gpt4 key购买 nike

我正在尝试在全日历中将时间格式更改为 24 小时制。

我试图找到它 here但我无法弄清楚。

enter image description here

这里的代码片段:

jQuery('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
editable: false,
weekends: true,
timeFormat: 'H:mmtt{-H:mmtt }',

请看 卡扣 并帮助我。谢谢...

最佳答案

您可以使用 axisFormat: 'HH:mm'来实现这一点。如果这有帮助,请告诉我。

补充一下:在 2.4.0 版本中,这个方法被重命名为 slotLabelFormat .

关于fullcalendar - 如何更改 fullcalendar 中的列时间格式?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13760889/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com