vue-ref的使用 2019-06-24 本文已影响0人 开着五菱宏光的小白 通过ref获取DOM的内容 <p ref = "hello">Hello World</p> 需要通过全局的$refs获取当前定义的ref this.$refs.hello //可以直接得到p标签