fullcalendar duration对象始终是字符串

fullcalendar duration对象始终是字符串,fullcalendar,duration,Fullcalendar,Duration,我使用的是fullcalendar的5.3.2版,for Duration对象声明,诸如calendar.getOption('slotDuration')之类的代码应该返回一个带有4个键(包括毫秒等)的Duration对象。不过,每次我得到一个duration对象时,我只会得到一个简单的字符串。所以calendar.getOption('slotDuration')会给我一些类似“05:00”的信息 这里显示的是返回的字符串,而不是持续时间(打开控制台查看字符串)。为什么示例不做文档中说明它应

我使用的是fullcalendar的5.3.2版,for Duration对象声明,诸如
calendar.getOption('slotDuration')
之类的代码应该返回一个带有4个键(包括毫秒等)的Duration对象。不过,每次我得到一个duration对象时,我只会得到一个简单的字符串。所以
calendar.getOption('slotDuration')
会给我一些类似“05:00”的信息


这里显示的是返回的字符串,而不是持续时间(打开控制台查看字符串)。为什么示例不做文档中说明它应该做的事情?

“为什么示例不做文档中说明它应该做的事情”…因为有一个bug?不是这样,就是文件有误。但是,我们在这里对这两件事都无能为力……您需要直接向fullCalendar维护人员报告-说明如下: