如何在Fullcalendar中编辑标题 [英] How to edit Title in Fullcalendar

查看:835
本文介绍了如何在Fullcalendar中编辑标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在ServiceNow中使用fullcalendar库,并且一切似乎都正常,但标题有些奇怪:



有没有办法通过更改Title对象来摆脱undefinedundefined?我现在的代码非常简单:

$ $ $ $''''''''''''''''''''''''。fullCalendar({
header:{$ $ b $ left:'today prev,next',
center:'title',
right:'month,agendaWeek,agendaDay'
}
})


解决方案

我认为您已经使用完整日历css和js文件的不同版本。
在这工作正常。请检查您使用的文件版本。我希望它能帮助你

$(document).ready(function (){//页面现在已准备就绪,初始化日历... $('#calendar')。fullCalendar({header:{left:'today prev,next',center:'title',right:'month, agendaWeek,agendaDay'}})});

< link rel =stylesheethref =https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.4.0/fullcalendar.css/> < script src =https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js>< / script> < script src ='http://fullcalendar.io/js/fullcalendar-3.4.0/lib/moment.min.js'>< / script> < script src ='http://fullcalendar.io/js/fullcalendar-3.4.0/fullcalendar.min.js'>< / script> < div id ='calendar'>< / div>

I'm trying to use the fullcalendar library in ServiceNow and everything seems to be working fine, but there's something weird going on with the Title:

Is there a way to get rid the undefinedundefined by making changes to the Title object? My current code is pretty simple:

$('#calendar').fullCalendar({
    header: {
        left: 'today prev,next',
        center: 'title',
        right: 'month,agendaWeek,agendaDay'
    }
})

解决方案

I think you have used different version of full calendar css and js file. in this it works fine. please check your file version used. i hope it should be helps you

$(document).ready(function() {

        // page is now ready, initialize the calendar...

        $('#calendar').fullCalendar({
              header: {
        left: 'today prev,next',
        center: 'title',
        right: 'month,agendaWeek,agendaDay'
    }
        })

    });

 <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.4.0/fullcalendar.css" />
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
    <script src='http://fullcalendar.io/js/fullcalendar-3.4.0/lib/moment.min.js'></script>
    <script src='http://fullcalendar.io/js/fullcalendar-3.4.0/fullcalendar.min.js'></script>
    <div id='calendar'></div>

这篇关于如何在Fullcalendar中编辑标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆