簡體   English   中英

flexsider不在生產中加載

[英]flexsider not loading on production

我正在嘗試使用flexsider制作滑塊,但它並未在生產中加載。 它在發展方面運作良好。 我收到此錯誤:

未捕獲的TypeError:$(...)。flexslider不是函數

這是網站鏈接: https : //mybagicha.herokuapp.com/

jQuery(window).load(function(){
  $('.flexslider').flexslider({
    animation: "fade",
    slideshowSpeed: 4000,
    animationSpeed: 600,
    controlNav: false,
    directionNav: true,
    controlsContainer: ".flex-container" // the container that holds the flexslider
  });
});

這意味着未定義jQuery 如果您兩次加載jQuery ,同樣也發生了該錯誤,請嘗試找出原因。

並嘗試將以下添加到$

jQuery(window).load(function($) { 
  $('.flexslider').flexslider({
    //Code here
  });
});

希望對大家有幫助

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM