Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/86.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jquery-ui/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery 应用';加载掩码';要知道日历有奇怪的结果_Jquery_Jquery Ui_Jquery Plugins_Fullcalendar - Fatal编程技术网

Jquery 应用';加载掩码';要知道日历有奇怪的结果

Jquery 应用';加载掩码';要知道日历有奇怪的结果,jquery,jquery-ui,jquery-plugins,fullcalendar,Jquery,Jquery Ui,Jquery Plugins,Fullcalendar,我正在使用,当我在不同的浏览器中将它与“”配对时,会得到奇怪的结果 loadmask通常出现在Firefox中,我也尝试过在Chrome中进行修改 如果在日历开始触发异步背景事件以显示各种元素之前和之后立即在调试器中暂停脚本,则会看到掩码。但是,在常规时间运行时,我在Internet Explorer、Chrome等浏览器中根本看不到loadmask 我在Firefox中看到的很好 到目前为止,我一直认为这是jQueryUI的一个z索引、覆盖问题,但事实证明,使用适合使用jQueryUI的Loa

我正在使用,当我在不同的浏览器中将它与“”配对时,会得到奇怪的结果

loadmask通常出现在Firefox中,我也尝试过在Chrome中进行修改

如果在日历开始触发异步背景事件以显示各种元素之前和之后立即在调试器中暂停脚本,则会看到掩码。但是,在常规时间运行时,我在Internet Explorer、Chrome等浏览器中根本看不到loadmask

我在Firefox中看到的很好

  • 到目前为止,我一直认为这是jQueryUI的一个z索引、覆盖问题,但事实证明,使用适合使用jQueryUI的Loadmask并没有太大影响-
  • 我还尝试使用超时功能等添加人工延迟,但它仍然不会在日历上显示 我想出来了:

    您可以将$.ajax函数的一部分打包到日历内部,但需要一些延迟:

    setTimeout(function() {
                        $.ajax($.extend({}, ajaxDefaults, source, {
                                data: data,
                                success: function(events) {
                                    events = events || [];
                                    var res = applyAll(success, this, arguments);
                                    if ($.isArray(res)) {
                                        events = res;
                                    }
                                    callback(events);
                                },
                                error: function() {
                                    applyAll(error, this, arguments);
                                    callback();
                                },
                                complete: function() {
                                    applyAll(complete, this, arguments);
                                    popLoading();
                                }
                        }))
                    }, options.fetchDelay);