Foundation对象没有方法基础

时间:2014-02-25 13:46:12

标签: object zurb-foundation

我的脚本订购有问题。

<head>
...    
<script src="layout/js/jquery.js" type="text/javascript"></script>
<script src="layout/js/foundation.js" type="text/javascript"></script>
<script src="layout/js/foundation.tooltip.js"></script>
<script src="layout/js/foundation.reveal.js" type="text/javascript"></script>
<script src="layout/js/jquery.modernizr.js" type="text/javascript"></script>


</head>
<body>
....

<script>
  $(document).foundation();
</script>

</body>
</html>

我读了很多这个问题的解决方案,但我找不到我的错误:( ..

以下是我在控制台中出现错误的示例页面:

http://davis-design.de/marktadresse/detailansicht.html

希望有人可以帮助我。

1 个答案:

答案 0 :(得分:0)

尝试使用此

  <script>
          document.write('<script src=' +
          ('__proto__' in {} ? '<%=ResolveUrl("~/js/vendor/zepto") %>' :'<%=ResolveUrl("~/js/vendor/jquery")%>') +
  '.js><\/script>')
   </script>
  <script src="<%=ResolveUrl("~/js/foundation.min.js") %>" type="text/javascript">   </script>
   <!--

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

  <script src="js/foundation/foundation.alerts.js"></script>

  <script src="js/foundation/foundation.clearing.js"></script>

  <script src="js/foundation/foundation.cookie.js"></script>

  <script src="js/foundation/foundation.dropdown.js"></script>

  <script src="js/foundation/foundation.forms.js"></script>

  <script src="js/foundation/foundation.joyride.js"></script>

  <script src="js/foundation/foundation.magellan.js"></script>

  <script src="js/foundation/foundation.orbit.js"></script>

  <script src="js/foundation/foundation.placeholder.js"></script>

  <script src="js/foundation/foundation.reveal.js"></script>

  <script src="js/foundation/foundation.section.js"></script>

  <script src="js/foundation/foundation.tooltips.js"></script>

  <script src="js/foundation/foundation.topbar.js"></script>

  <script src="js/foundation/foundation.interchange.js"></script>
  -->
 <script>
  $(document).foundation();
 </script>