摘要: 1.模拟限制宽高 【在要获取宽高的元素 上加 ref 属性】 <div style="width:600px;height:300px" ref="barparent" > </div> 2.获取宽高 console.log('this.$refs.barparent.$el.offsetWidth 阅读全文
posted @ 2020-11-17 16:35 皮一皮很开心 阅读(5879) 评论(0) 推荐(0) 编辑