我一直在关注 this guide from Zurb ,但我无法让这个简单的下拉菜单正常工作。
这是一个傻瓜:http://plnkr.co/edit/nMqBGEjOvhVtaWFIIQHD
我做了以下事情:
- 在 Foundation 的 JS 之上包含 JQuery
- 包含 Foundation 的 JS
- 在
<body>
中初始化基础通过<script>$(document).foundation(); </script>
- 没有在控制台中注意到任何 JS 错误。
但是,当我单击下拉菜单时,没有任何反应。我在这里错过了什么?任何帮助将不胜感激。如果您还需要什么,请告诉我。
最佳答案
当我阅读指南时:
"We recommend that you initialize Foundation at the end of the page" .
像这样:
...
<script>$(document).foundation();</script>
</body>
关于javascript - 基础下拉菜单(使用 Plunker),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34437887/