Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/68.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 Wicket FullCalendar和Bootstrap各有什么版本_Jquery_Twitter Bootstrap_Fullcalendar_Wicket - Fatal编程技术网

Jquery Wicket FullCalendar和Bootstrap各有什么版本

Jquery Wicket FullCalendar和Bootstrap各有什么版本,jquery,twitter-bootstrap,fullcalendar,wicket,Jquery,Twitter Bootstrap,Fullcalendar,Wicket,我试图使用最新的Wicket FullCalendar 2.3代码,但在启动时遇到javascript错误 Uncaught TypeError: undefined is not a function CalendarPage?0:139 (anonymous function)jquery.min.js:2 n.Callbacks.jjquery.min.js:2 n.Callbacks.k.fireWithjquery.min.js:2 n.extend.readyjquery.m

我试图使用最新的Wicket FullCalendar 2.3代码,但在启动时遇到javascript错误

Uncaught TypeError: undefined is not a function CalendarPage?0:139 
(anonymous function)jquery.min.js:2 
n.Callbacks.jjquery.min.js:2 
n.Callbacks.k.fireWithjquery.min.js:2 
n.extend.readyjquery.min.js:2
我正在使用jquery,它与fullcalendar代码一起发送,带有最新版本的bootstrap,用于其他UI组件3.3.2

我遇到了版本错误。Bootstrap需要jquery 1.9或更高版本,但fullcalendar附带了1.8。我在它们之间来回切换,但错误无法自行解决

有兼容的版本吗

Config config = new Config();
        config.setSelectable(true);
        config.setSelectHelper(false);

        EventSource reservations = new EventSource();
        reservations.setTitle("Reservations");
        reservations
                .setEventsProvider(new RandomEventsProvider("Reservation "));
        reservations.setEditable(true);
        reservations.setBackgroundColor("#63BA68");
        reservations.setBorderColor("#63BA68");
        config.add(reservations);

        EventSource downtimes = new EventSource();
        downtimes.setTitle("Maintenance");
        downtimes.setBackgroundColor("#B1ADAC");
        downtimes.setBorderColor("#B1ADAC");
        downtimes.setEventsProvider(new RandomEventsProvider("Maintenance "));
        config.add(downtimes);

        EventSource other = new EventSource();
        other.setTitle("Other Reservations");
        other.setBackgroundColor("#E6CC7F");
        other.setBorderColor("#E6CC7F");
        other.setEventsProvider(new RandomEventsProvider("Other Reservations "));
        config.add(other);

        config.getHeader().setLeft("prev,next today");
        config.getHeader().setCenter("title");
        config.getHeader().setRight("month,agendaWeek");

        config.setLoading("function(bool) { if (bool) $(\"#loading\").show(); else $(\"#loading\").hide(); }");

        config.setWeekends(false);
        config.setMinTime(new LocalTime(6, 30));
        config.setMaxTime(new LocalTime(17, 30));
        config.setAllDaySlot(false);
        FullCalendar calendar = new FullCalendar("cal", config) {

            @Override
            protected void onViewDisplayed(View view, CalendarResponse response) {

                info("View displayed. viewType: " + view.getType().name()
                        + ", start: " + view.getStart() + ", end: "
                        + view.getEnd());
                response.getTarget().add(feedback);
            }
        };
        calendar.setMarkupId("calendar");
        add(calendar);
        add(new EventSourceSelector("selector", calendar));

这是在页面加载时发生的,还是仅在尝试在函数中使用库时发生的?如果我们能看到导致这种情况的代码,我们可能会更好地帮助您。这是页面加载。我还没有添加任何自定义项。只是想让示例代码正常工作。这是作为最新版本的工作示例直接提供的注意,onViewDisplayed似乎没有启动。。。至少jQuery 1.11没有打印到日志集,如果不是2的最新版本的话。(不升级到2的唯一原因是为了支持IE8,但既然XP已经被弃用,这应该不再是一个问题)。