<div class="menu-wrapper" ref="menuWrapper" >
this.$refs.menuWrapper
从新渲染完 在执行
this.$nextTick( () => {
console.log(1111)
this._initBetter()
})
<div class="menu-wrapper" ref="menuWrapper" >
this.$refs.menuWrapper
从新渲染完 在执行
this.$nextTick( () => {
console.log(1111)
this._initBetter()
})
转载于:https://www.cnblogs.com/YHJUN/p/8760919.html