当我使用功能时:
$scope.getDate = function() {
return uiCalendarConfig.calendars['myCalendar1'].fullCalendar('getDate');
}
切换到+2或-2个月后返回错误的日期。 如何获得我在日历上选择的日期/月份?
答案 0 :(得分:0)
您好可以在日历配置中尝试使用此代码查看日期显示是否正常?
viewRender:function( view, element ){
console.log($('#calendar').fullCalendar('getDate').format('YYYY-MM-DD'));
}
甚至可以在我的基本配置中正确显示。 希望它会有所帮助。