今天的全日历开始日期 [英] full-calendar start date today
本文介绍了今天的全日历开始日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我很努力地让全日历从今天开始。
它的功能是显示完整的一周,当我这样做时: - $ / b>
I am trying really hard to make full-calendar to start from today. What it does is it displays the full week when I do this:-
$('#calendar').fullCalendar({
// Options
});
$('#calendar').fullCalendar('gotoDate', currentDate);
其中currentDate是今天。
where currentDate is today.
引用: -
http://flickfootball.in/
点击日历标签.. p>
Refernce:- http://flickfootball.in/ click on calendar tab..
推荐答案
FullCalendar依赖于 moment.js ,所以你可以这样做:
FullCalendar depends on moment.js, so you can do:
var today = moment().day();
$('#calendar').fullCalendar({
firstDay: today
});
这篇关于今天的全日历开始日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文