Using Salesforce
apex:includeScript value="{!URLFOR($Resource.Fullcalendarzip, '/moment.min.js')}"
$(document).ready(function() {
$('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
editable: true,
defaultDate: '2015-12-12',
editable: true,
events:[ ]
});
How to get today's date default but defaultDate: '2015-12-12' ,over here its hard coded how to get the default today's date.
只需使用Javascript的new Date()
即可获取今天的date
。
defaultDate: new Date(),
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.