全日历中所有事件标题都带有不需要的字符串
unwanted string coming with all event title in fullcalendar
我正在使用全日历及其工作 fine.i 从
http://www.codeproject.com/Articles/638674/Full-calendar-A-complete-web-diary-system-for-jQue
但是这里有一些不需要的字符串,如“12a”,所有事件都会附带 title.i 想要删除这个不需要的名称。我检查了 css 和 js 文件,但我找不到它包含在哪里。
任何人都可以帮助我从所有事件名称中删除这个“12a”字符串。
这个“12a”表示您的活动开始时间,即“12 am”。
您可以在日历选项中更改格式:
$('#calendar').fullCalendar({
events: [
{
title: 'My Event',
start: '2010-01-01T14:30:00',
allDay: false
}
// other events here...
],
timeFormat: 'H(:mm)' // uppercase H for 24-hour clock
});
来源:http://fullcalendar.io/docs/text/timeFormat/
如果您想隐藏活动的开始时间,只需将其添加到您的 CSS:
.fc-time{
display : none;
}
要删除“12a”,请添加 displayEventTime: false
。
$('#calendar').fullCalendar({
events: [
{
title: 'My Event',
start: '2010-01-01T14:30:00',
allDay: false
}
// other events here...
],
timeFormat: 'H(:mm)' // uppercase H for 24-hour clock、
displayEventTime: false,
});
如果我们使用 displayEventTime: false
那么它将从该事件中删除所有时间戳,
但是如果你知道开始时间而不是 other/end 时间,那么写 CSS.
Class 名称按照最新版本。
.fc-event-end .fc-event-time{
display: none;
}
我正在使用全日历及其工作 fine.i 从 http://www.codeproject.com/Articles/638674/Full-calendar-A-complete-web-diary-system-for-jQue
但是这里有一些不需要的字符串,如“12a”,所有事件都会附带 title.i 想要删除这个不需要的名称。我检查了 css 和 js 文件,但我找不到它包含在哪里。
任何人都可以帮助我从所有事件名称中删除这个“12a”字符串。
这个“12a”表示您的活动开始时间,即“12 am”。 您可以在日历选项中更改格式:
$('#calendar').fullCalendar({
events: [
{
title: 'My Event',
start: '2010-01-01T14:30:00',
allDay: false
}
// other events here...
],
timeFormat: 'H(:mm)' // uppercase H for 24-hour clock
});
来源:http://fullcalendar.io/docs/text/timeFormat/
如果您想隐藏活动的开始时间,只需将其添加到您的 CSS:
.fc-time{
display : none;
}
要删除“12a”,请添加 displayEventTime: false
。
$('#calendar').fullCalendar({
events: [
{
title: 'My Event',
start: '2010-01-01T14:30:00',
allDay: false
}
// other events here...
],
timeFormat: 'H(:mm)' // uppercase H for 24-hour clock、
displayEventTime: false,
});
如果我们使用 displayEventTime: false
那么它将从该事件中删除所有时间戳,
但是如果你知道开始时间而不是 other/end 时间,那么写 CSS.
Class 名称按照最新版本。
.fc-event-end .fc-event-time{
display: none;
}