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?我沒有看到。 –