Cannot read property '$el' of undefined at VueComponent

在.vue文件的template標籤裏面引用子組件,以下所示html <scroll class="middle-r" ref="lyriclist" :data="currentLyric && currentLyric.lines"></scroll> 而後再<script>中的methods屬性中的一個方法去獲取到該對象:因爲<scroll>是一個子組件,經過this.$refs.lyric
相關文章
相關標籤/搜索