vue 获取dom节点

<input ref="aaa",></input>

获取当前input 可以使用以下两种方案

this.$refs.aaa 
document.getElementById('aaa')

refs这种方式会减少消耗

相关文章: