标题中的日期无明显原因显示为间隔
Date in title shows as interval for no obvious reason
我正在调整 titleFormat
以获得 Friday, April 21, 2017
但我得到了奇怪的结果:
dddd
呈现 Friday
LL
呈现 April 21, 2017
- 但是将两者放在一起,
dddd LL
,呈现为 Friday, April 21, 2017 – April 21, 2017
我错过了什么?
$(function() {
$("#c1").fullCalendar({
height: 100,
defaultView: "agendaDay",
allDaySlot: false,
titleFormat: "dddd"
});
$("#c2").fullCalendar({
height: 100,
defaultView: "agendaDay",
allDaySlot: false,
titleFormat: "LL"
});
$("#c3").fullCalendar({
height: 100,
defaultView: "agendaDay",
allDaySlot: false,
titleFormat: "dddd LL"
});
});
<link href='https://fullcalendar.io/js/fullcalendar-3.3.1/fullcalendar.css' rel='stylesheet' />
<link href='https://fullcalendar.io/js/fullcalendar-3.3.1/fullcalendar.print.css' rel='stylesheet' media='print' />
<script src='//cdnjs.cloudflare.com/ajax/libs/moment.js/2.9.0/moment.min.js'></script>
<script src='//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='https://fullcalendar.io/js/fullcalendar-3.3.1/fullcalendar.js'></script>
<div id="c1"></div>
<div id="c2"></div>
<div id="c3"></div>
这显然是库中的错误 (#3645)。
我正在调整 titleFormat
以获得 Friday, April 21, 2017
但我得到了奇怪的结果:
dddd
呈现Friday
LL
呈现April 21, 2017
- 但是将两者放在一起,
dddd LL
,呈现为Friday, April 21, 2017 – April 21, 2017
我错过了什么?
$(function() {
$("#c1").fullCalendar({
height: 100,
defaultView: "agendaDay",
allDaySlot: false,
titleFormat: "dddd"
});
$("#c2").fullCalendar({
height: 100,
defaultView: "agendaDay",
allDaySlot: false,
titleFormat: "LL"
});
$("#c3").fullCalendar({
height: 100,
defaultView: "agendaDay",
allDaySlot: false,
titleFormat: "dddd LL"
});
});
<link href='https://fullcalendar.io/js/fullcalendar-3.3.1/fullcalendar.css' rel='stylesheet' />
<link href='https://fullcalendar.io/js/fullcalendar-3.3.1/fullcalendar.print.css' rel='stylesheet' media='print' />
<script src='//cdnjs.cloudflare.com/ajax/libs/moment.js/2.9.0/moment.min.js'></script>
<script src='//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='https://fullcalendar.io/js/fullcalendar-3.3.1/fullcalendar.js'></script>
<div id="c1"></div>
<div id="c2"></div>
<div id="c3"></div>
这显然是库中的错误 (#3645)。