gpt4 book ai didi

javascript - 将议程时间从早上 6 点更改为明天早上 6 点

转载 作者:行者123 更新时间:2023-12-03 04:52:42 25 4
gpt4 key购买 nike

我正在尝试设置 FullCalendar,以便它显示从早上 6 点到第二天早上 6 点的时间。我可以设置 minTime=6,但是我应该将什么设置为 maxTime?谢谢!

这是完整的代码:

<script>
$(document).ready(function() {
$.ajax({
url: "/getfullcalendar",
cache: false
})
.done(function( retevents ) {
var retevents = retevents;
$('#fullcalendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaDay,listWeek',
},
firstDay: 1,
defaultView: 'agendaDay',
navLinks: true,
minTime: "06:00:00",

// What to put here
// for the same time tomorrow (6am)?
maxTime: "24:00:00",

height: 'auto',
events: retevents,

});
});
});
</script>

最佳答案

maxTime: "30:00:00"

24小时+次日6小时

关于javascript - 将议程时间从早上 6 点更改为明天早上 6 点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42588328/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com