Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/440.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/2/jquery/82.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
Javascript Jquery FullCalendar未在弹出窗口中加载_Javascript_Jquery_Popup_Fullcalendar - Fatal编程技术网

Javascript Jquery FullCalendar未在弹出窗口中加载

Javascript Jquery FullCalendar未在弹出窗口中加载,javascript,jquery,popup,fullcalendar,Javascript,Jquery,Popup,Fullcalendar,我用自定义css和js show hide函数创建了一个弹出窗口。现在我想把日历放在弹出窗口中 我试过了 $(document).on('click', '.cliker', function () { $(".succes_msg").remove(); $show = $(this).attr('pkid'); $(this).addClass('activer'); $("input[name=startTime]").val($(this).find("sp

我用自定义css和js show hide函数创建了一个弹出窗口。现在我想把日历放在弹出窗口中

我试过了

$(document).on('click', '.cliker', function () {
   $(".succes_msg").remove();
    $show = $(this).attr('pkid');
    $(this).addClass('activer');
    $("input[name=startTime]").val($(this).find("span").eq(0).html()).timepicker();
    $(".addbtn").attr('pkId', $show);

    $('#calendar').fullCalendar({

      defaultView: 'basicWeek',
      aspectRatio: 1.5,
      header    : {
        left  : 'prev,next',
        center: 'title',
        right : ''
      },
      dayOfMonthFormat: 'ddd MMM/MM',
      firstDay: 4,
      eventLimit: true,
      render: true,
      height: 250,
      buttonText: {
        today: 'today',
        month: 'month'        },
      eventSources: [{
        url: '{{URL::to(route('get_calender_data'))}}',
        type: 'get',
        data: {cinema: 0}
       }],
    });

    $(".modelPophldr,.editShow").show();
    $(".editShow").animate({'margin-top': '25px'});
});
像上面一样,我在fullcalendar渲染后显示弹出窗口。 如何修复它

编辑

现在,日历只有左右箭头,但日历没有加载。当我点击下一步按钮时,它将完美地显示带有事件的日历。

显示:无将元素从HTML流中移除,因此当元素可见时,您需要调用事件,这就是为什么您点击箭头时插件工作的原因

之后尝试初始化你的插件

$(".modelPophldr,.editShow").show();

尝试在$.modelPophldr、.editShow.show之后初始化;太好了,兄弟,它起作用了。。谢谢你,没有看到html很难猜测,或者最好为这个例子创建一个代码段