0
我想在基金会做一个简单的下拉菜单作为测试只是为了让它在页面上。基金会因为某种原因不被认可
<a data-dropdown="drop2" aria-controls="drop2" ariaexpanded="false">Has Content Dropdown</a>
<div id="drop2" data-dropdown-content class="f-dropdown content" aria-hidden="true" tabindex="-1">
<p>Some text that people will think is awesome! Some text that people will think is awesome! Some text that people will think is awesome!</p>
</div>
我一直得到击中与错误TypeError: Cannot read property 'className' of undefined
。在调用堆栈中,它在堆栈顶部显示foundation.js:195
。
它看起来对我来说,foundation.js
实际上没有正确加载,但看到这样使用它,我不能完全肯定是我的第一个应用程序。有任何想法吗?
嗯怪异..我试图用粉底v 6.2.3 ... – scotchpasta
我刚刚结束了以下从基础护栏的git的指示:https://开头github.com/zurb/foundation-rails – scotchpasta
@scotchpasta你在哪里看到关于6.2.3使用的data-dropdown-content和f-dropdown?我没有看到。 –