包含现场活动的完整日历

发布于 2024-12-08 21:21:30 字数 218 浏览 3 评论 0原文

我需要在 live() 方法上触发 FullCalendar。所以,我尝试了这个:

$('.full-calendar').live('fullCalendar', function(){
    return { header : .... //options here }
});

但这不起作用。您认为有可能实现这一目标吗?

I need to fire FullCalendar on live() method. So, I tried this:

$('.full-calendar').live('fullCalendar', function(){
    return { header : .... //options here }
});

But this doesn't work. Do you think is possible to achieve this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

拥醉 2024-12-15 21:21:30

fullcalendar 不是 .live() 支持的事件参考。实际上,这个根本不是一个事件(除非您自己创建它,但 .live() 不会支持它。

您的完整日历创建必须是由真实事件触发(单击、双击...)

您可能可以使用类似以下内容的内容:

$('.full-calendar').live('click', function() {
   $('#calendar').fullCalendar({
        // put your options and callbacks here
    })
});

fullcalendar is not a supported event by .live()ref. Actually, this is not an event at all (unless you created it by yourself but it wouldn't then be supported by .live().

Your full calendar creation must be triggered by a real event (click, double-click,...)

You could probably use something like:

$('.full-calendar').live('click', function() {
   $('#calendar').fullCalendar({
        // put your options and callbacks here
    })
});
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文