如何在fullcalendar上获得开始和结束时间? [英] How can get start and end time on fullcalendar?
问题描述
我怎样才能在fullcalendar中获得 start 和 end 的可见天数?我需要它在另一个JavaScript instace中使用。是否有一些函数像 -
$('calender')。getStartTime();
?
visStart
和 第1版中的视图对象的visEnd
属性: $( ''calender')。fullCalendar('getView')。visStart
$ b $('calender')。fullCalendar('getView')。visEnd
,那就是 intervalStart
和 intervalEnd
in version 2 :
$('calender')。fullCalendar('getView')。intervalStart
$ b $('calender')。fullCalendar('getView')。intervalEnd
如果您正在查找当前周/月的开始和结束日期,那将是开始
和结束
当前视图对象的属性:
$('calendar')。fullCalendar('getView ).start
$('calendar')。fullCalendar('getView')。end
参考:完整日历文档。
how can i get start and end time of visible days in fullcalendar?
I need it for use in another javascript instace. Is there some function like -
$('calender').getStartTime();
?
If you're looking for the visible start and end date, that would be the visStart
and visEnd
property of the view object in version 1:
$('calender').fullCalendar('getView').visStart
$('calender').fullCalendar('getView').visEnd
and that would be intervalStart
and intervalEnd
in version 2:
$('calender').fullCalendar('getView').intervalStart
$('calender').fullCalendar('getView').intervalEnd
If you're looking for the start and end date of the current week / month, that would be the start
and end
property of the current view object:
$('calendar').fullCalendar('getView').start
$('calendar').fullCalendar('getView').end
Reference : Full Calendar documentation.
这篇关于如何在fullcalendar上获得开始和结束时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!