小编Joe*_*Joe的帖子

moment().format()和fullcalendar:undefined不是函数

我正在尝试使用fullcalendar的moment().format(); 我有这个代码:

<script src="<?php echo ASSETS_URL; ?>/js/plugin/fullcalendar/lib/moment.js"></script>
<script> moment().format() </script> 
<script type="text/javascript">
 $('#calendar').fullCalendar({

        header: hdr,
        buttonText: {
            prev: '<i class="fa fa-chevron-left"></i>',
            next: '<i class="fa fa-chevron-right"></i>'
        },
        defaultView: "agendaWeek",
        editable: true,
        droppable: false, // this allows things to be dropped onto the calendar !!!
        lang: 'it',
        timeFormat: 'H(:mm)',
        firstDay: 1,
        drop: function (date, allDay) { // this function is called when something is dropped


        events: [{

        }],
        eventDragStart: function( event, jsEvent, ui, view ) { 
            ev_start=event.start.moment().format("dddd (d) DDD - D/MM/YY");
            console.log(ev_start); …
Run Code Online (Sandbox Code Playgroud)

fullcalendar momentjs

5
推荐指数
1
解决办法
1万
查看次数

标签 统计

fullcalendar ×1

momentjs ×1