2012-03-11 47 views
0

我想知道如果有人在那裏知道zurbs foundation哪些js文件需要jquery。我在wordpress中構建了我的functions.php文件,並且我想爲這些腳本設置依賴關係(如果有的話),以確保它們在Jquery文件之後加載。下面是文件列表Zurb基金會jquery依賴關係

  • modernizer.js
  • foundation.js
  • app.js

再次哪些有jQuery的依賴關係?

回答

0

這個問題是有點老了,所以現在的問題不會是完全一樣的:

modernizer.js不需要jQuery的,我想基礎&應用做了,但是zurb有顯著改變的JavaScript文件,包括他們自己的現代化分支(modernizr.foundation.js) - 當前(基礎2.2)「首選」加載順序是:

<head> 
<script src="js/modernizr.foundation.js"></script> 
</head> 

<body> 
... 
... 
<!-- end of container/all content --> 

<script src="js/jquery-1.7.2.js"></script> 

<!-- all the jQuery dependent files begin with 'jquery.' and are separated so 
you can remove what you don't use --> 


<script src="js/jquery.reveal.js"></script> 
<script src="js/jquery.orbit-1.4.0.js"></script> 
<script src="js/jquery.customforms.js"></script> 
<script src="js/jquery.placeholder.min.js"></script> 
<script src="js/jquery.tooltips.js"></script> 

<!-- app.js is basic functions that you're supposed to edit - 
it requires jQuery to start as well --> 

<script src="js/app.js"></script> 
</body>