找到你要的答案

Q:Fullcalendar: Labeling the current day with “Today” in agendaWeek view

Q:Fullcalendar:标记当前的一天“今天”agendaweek观

I am trying to label the current day with "Today" but cannot get it to work.

I am trying some simple js:

$('.fc-sat').text('Today');

But the result is:

and as soon as I navigate to the next week and back, it is disappearing.

I could not find an option for this specific label in the docs either.

我试图用“今天”来标记当前的日子,但不能让它工作。

我尝试一些简单的JS:

$('.fc-sat').text('Today');

但结果是:

我一到下周就回来了,它正在消失。

我不能在文档中找到这个特定的标签选项。

answer1: 回答1:

FullCalendar uses .fc-today class for the current day. Hence, $('.fc-today').text('Today'); should work.

fullcalendar用途。俱乐部今天上课的当天。因此,$('。FC今天)。文本(今天的);应该工作。

jquery  fullcalendar