在想要获取元素上添加“ref” ref="scroll" scroll为函数名 <div ref="scroll">vue获取指定元素</div> xiaFn:function(){ console.log(this.$refs.scroll) }