gpt4 book ai didi

javascript - jquery 完整日历 : callback 'after' the calendar has loaded completely

转载 作者:可可西里 更新时间:2023-11-01 02:49:33 25 4
gpt4 key购买 nike

Adam Shaw 的 jquery full calendar 中是否有在日历完全呈现后调用的回调?我想在该回调中调用 clientEvents 函数以获取客户端的所有事件。我尝试在 viewDisplay 中执行此操作,但在呈现事件之前调用它并且 clientEvents 返回 0 个事件。

最佳答案

我知道这篇文章现在已经很老了,但如果有任何帮助,您不需要按照 Cheery 的建议修改原始来源(尽管他/她的回答也可以正常工作)。

您也可以只使用已经存在的回调“loading”:

$('#calendar').fullCalendar({
loading: function(bool) {
if (bool){
alert('I am populating the calendar with events');
}
else{
alert('W00t, I have finished!');
// bind to all your events here
}
}
);

关于javascript - jquery 完整日历 : callback 'after' the calendar has loaded completely,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9272005/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com