2010-06-08 48 views

回答

31

你剛纔創建fullcalendar時覆蓋設置。像這樣:

var options = { 
    theme: true, 
    header: { 
    left: 'prev,next today', 
    center: 'title', 
    right: 'month,agendaWeek,agendaDay' 
    }, 
    timeFormat: { 
    agenda: 'h(:mm)t{ - h(:mm)t}', 
    '': 'h(:mm)t{-h(:mm)t }' 
    }, 
    monthNames: ["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre" ], 
    monthNamesShort: ['Ene','Feb','Mar','Abr','May','Jun','Jul','Ago','Sep','Oct','Nov','Dic'], 
    dayNames: [ 'Domingo', 'Lunes', 'Martes', 'Miércoles', 'Jueves', 'Viernes', 'Sábado'], 
    dayNamesShort: ['Dom','Lun','Mar','Mié','Jue','Vie','Sáb'], 
    buttonText: { 
    today: 'hoy', 
    month: 'mes', 
    week: 'semana', 
    day: 'día' 
    } 
    }; 

    $('#calendar').fullCalendar(options); 
+0

謝謝!這正是我需要的。 – vtambourine 2010-06-08 10:48:42

+0

我也在尋找這個。完善。 – Frank 2013-02-25 13:31:57

+0

@ vtambourine如果這回答了您的問題,請將此標記爲已接受的答案。所以它可以幫助其他用戶 – 2014-08-19 13:43:53