如何在fullcalendar上获得开始和结束时间? [英] How can get start and end time on fullcalendar?

查看:1119
本文介绍了如何在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆