Jquery 元件 fullcalendar 動態改變event顏色的分法
方法一、 eventAfterRender : function ( event , element , view ) { var dataHoje = new Date (); if ( event . start < dataHoje && event . end > dataHoje ) { //event.color = "#FFB347"; //Em andamento element . css ( 'background-color' , '#FFB347' ); } else if ( event . start < dataHoje && event . end < dataHoje ) { //event.color = "#77DD77"; //Concluído OK element . css ( 'background-color' , '#77DD77' ); } else if ( event . start > dataHoje && event . end > dataHoje ) { //event.color = "#AEC6CF"; //Não iniciado element . css ( 'background-color' , '#AEC6CF' ); } }, 方法二、 eventSources : [ // your event source { events : [ // put the array in the `events` property {