/ 前端 / Vue / $refs :ref="name" this.$refs.name 就相当于与document.getelementById() 取到的就是dom 防范dom没加载完时取值,这时候取不到
评论区