yunjiao

1、标签

<div class="bar" ref="barparent"></div>

2、获取

const parentClientWidth = this.$refs.barparent.clientWidth;

 

分类:

技术点:

相关文章: