2016-01-07 63 views
0

在問這裏之前,我已經嘗試了很多類型和時間,但沒有使用我得到同樣的錯誤都未捕獲ReferenceError:未定義jQuery和$沒有定義。 我的代碼是

<script src="js/jQuery.min.js"></script> 
<script src="js/jQuery-ui.min.js"></script> 
<script src="js/bootstrap.min.js" type="text/javascript"></script> 
<script src="js/floating-1.12.js" type="text/javascript"></script> 
<script src="js/stickyfloat.js" type="text/javascript"></script> 
<script type="text/javascript"> 
    jQuery(document).ready(function($) 
    { 
     $('#floatdiv').addFloating( 
      { 
       targetRight: 10, 
       targetBottom: 10, 
       snap: true 
      }); 
    }); 
</script> 
<script> 
$(".bt").click(function() { 
    $('.easing').parent().hide(); 
}); 
</script> 

請幫我

+0

你一定發現有很多相關的問題,同時張貼這一個..通過他們去.. – Rayon

+0

你確定當您嘗試加載js/jQuery.min.js時,您還沒有收到404錯誤? – DelightedD0D

回答

0

$ - 是的jQuery的defult字符。 你有ovveride它,當你寫的函數參數,只是儘量從功能刪除帕拉姆$:

 jQuery(document).ready(function() 

    { 

     $('#floatdiv').addFloating(

      { 

       targetRight: 10, 

       targetBottom: 10, 

       snap: true 

      }); 

    }); 
+0

我的回答有什麼問題?你爲什麼投下來? – user2783091

相關問題