yii2 Fullcalendar - Why is alert for CalEvent working but not for updating innerHtml?
问题 I am using philippfrenzel/yii2fullcalendar and I want to show the event description. when I am using the code: <script> var JSEventClick = (function(calEvent, jsEvent, view) { // document.getElementsByClassName('.fc-title').innerHtml += 'calEvent.nonstandard.field1' ; alert(calEvent.title + ' -- ' + calEvent.nonstandard.field1); }); </script> it is working fine. but when I am using: <script> var JSEventClick = (function(calEvent, jsEvent, view) { document.getElementsByClassName('.fc-title')