将点击事件添加到fullcalendar [英] adding a click event to fullcalendar

查看:138
本文介绍了将点击事件添加到fullcalendar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在事件上添加点击事件,并将日期和事件时间作为网址变量传递给另一个页面?当用户点击某个事件时,我想将日期和事件时间传递给另一个页面进行处理。

How can I add a click event on an event and pass the day and event time as a url variable to another page? When a user clicks on an event I want to pass the date and event time to another page for processing.

推荐答案

$('#calendar').fullCalendar({
    eventClick: function(calEvent, jsEvent, view) {
        window.location = "http://www.domain.com?start=" + calEvent.start;

    }
});

寻找更多信息: http://arshaw.com/fullcalendar/docs/mouse/eventClick/

这篇关于将点击事件添加到fullcalendar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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