vue获取dom

//使用ref属性来获取当前的div的dom属性
<div class="list" ref="wrapper"></div>

  

//在js里面这样使用

this.$refs.wrapper

  

原文地址:https://www.cnblogs.com/chenlw/p/9718799.html