原生JS
VUE
<div class="swiper-container" ref="swipermsg"><div>
this.$refs.swipermsg
this.$refs["swipermsg"].swiper
this.$refs.swipermsg 获取的是以下内容
this.$refs["swipermsg"].swiper 获取的是以下内容
原生JS
VUE
<div class="swiper-container" ref="swipermsg"><div>
this.$refs.swipermsg
this.$refs["swipermsg"].swiper
this.$refs.swipermsg 获取的是以下内容
this.$refs["swipermsg"].swiper 获取的是以下内容