<div ref="showBorder"></div>
this.$refs.showBorder.style.width = 200 + "px";
this.$refs.showBorder.style.display = 'block';
vue获取dom添加样式
最新推荐文章于 2023-11-06 16:01:40 发布
<div ref="showBorder"></div>
this.$refs.showBorder.style.width = 200 + "px";
this.$refs.showBorder.style.display = 'block';