0
我試圖訪問DOM元素檢索類元素「表現出更多的主題」從HAML文件如何從HAML文件
#profile-wrapper.container-fluid
.sidebar
.profile
%h4 Interests
%ul.topics
%a.show_more_topics.hide Show More
我試圖運行下面的代碼:
$('.topics .show_more_topics')
但是我回到一個空數組[]。
如何檢索'顯示更多主題'元素?