一、简单赋值this
<div ref="refCon"></div>
访问方式:spa
this.$refs.refCon
二、循环赋值,相同名称code
<div v-for="i in 2" ref="refCon"></div>
访问方式:blog
this.$refs.refCon[0]
this.$refs.refCon[1]
三、循环赋值,不一样名称class
<div v-for="i in 2" :ref="`refCon${i}`"></div>
访问方式:循环
this.$refs.refCon0[0]
this.$refs.refCon1[0]