Vue 获取Dom ref

<div ref="test"></div>
// 获取DOM
this.$ref.test

 

posted @ 2025-02-08 10:27  市丸银  阅读(10)  评论(0)    收藏  举报