0
私はfullcalendarを使用しています。その日のその時に働いた合計時間を追加したいと思います。どうやってやるの?fullcalendar、1日あたりのイベントを計算したい
<script>
$(document).ready(function() {
var date = new Date();
var d = date.getDate();
var m = date.getMonth();
var y = date.getFullYear();
$('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay',},
editable: false,
draggable: false,
events: [
{
id:1,
title: 'All Day Event',
start: new Date(y, m, 1),
worktime:'5'
},
{
id:2,
title: 'Long Event',
start: new Date(y, m, 1),
end: new Date(y, m, d-2),
worktime:'20'
},
]
});
});
</script>
私は一日あたりの時間の合計を合計したい場合。どうやって? –
1日の合計時間を合計したい場合どうやって? @ボブダスト –