繁体   English   中英

未捕获的TypeError:jQuery(...)。flexslider不是函数

[英]Uncaught TypeError: jQuery(…).flexslider is not a function

嗨,我是新手,但是从几天以来,我的wordpress网站就给出了此错误,而不是加载flexslider。 它卡在加载滑块..,并给出此错误

Uncaught TypeError: jQuery(...).flexslider is not a function
at jquery.flexslider-min.js?ver=4.6.2:41
at dispatch (jquery.js?ver=1.12.4:3)
at r.handle (jquery.js?ver=1.12.4:3)

我的网站是womennow.in

和错误在

    (function($){
    jQuery(window).load(function(){
        jQuery('.flexslider').flexslider({
        animation: "fade", controlNav: "thumbnails", directionNav: false,
        start: function(slider){
          jQuery('.slider-container').removeClass('loading');
        }
      });
     jQuery('.sliderTitle').css('opacity',0.9);
    });
}(jQuery));

非常感谢任何帮助。

jQuery在函数内部未引用,或者尝试将jQuery注入函数中或将$调用更改为函数内部,请确保您正在导入库:

 (function(jQuery){
    jQuery(window).load(function(){
        jQuery('.flexslider').flexslider({
        animation: "fade", controlNav: "thumbnails", directionNav: false,
        start: function(slider){
          jQuery('.slider-container').removeClass('loading');
        }
      });
     jQuery('.sliderTitle').css('opacity',0.9);
    });
}(jQuery));

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM