【发布时间】:2010-07-11 16:27:22
【问题描述】:
我正在使用全日历。
我想更改我的日历,所以默认月份是六月(加载的初始月份),我相信这就是我需要的: http://arshaw.com/fullcalendar/docs/current_date/month/
问题是,我不是很擅长.js……而且解释也不是很清楚。
这是我尝试过的:
<script type='text/javascript'>
$(document).ready(function() {
var date = new Date();
var d = date.getDate();
var m = date.getMonth();
var y = date.getFullYear();
$('#calendar').fullCalendar('gotoMonth', 7);
$('#calendar').fullCalendar({
editable: true,
events: [
{
imageAfterTime: $("<img src = 'images/flags/za.png' style='width:19px;height:13px'/>"),
imageAfterTitle: $("<img src = 'images/flags/mx.png' style='width:19px;height:13px'/>"),
title:' RSA-MEX ',
start: '2010-06-11T14:30:00',
allDay: false,
},
>>>rest of events...
您可以在以下位置查看我的日历: http://cudamine.com/icame/sitemundial/calendar.html
谁能帮我调用这个月的方法?
【问题讨论】:
标签: javascript jquery jquery-plugins fullcalendar