vue获取节点this.$refs.xxx 相当于原生DOM里的document.querySelector(".input1") 在html里给标签添加标签名 ref=“xxx” <div id="app"> <input type="text" ref