mounted() {
window.onresize = () => {
return (() => {
this.$nextTick(() => {
console.log('this.$refs.wrapper', this.$refs.wrapper)
})
})()
}
},
vue监听浏览器窗口发生变化
最新推荐文章于 2024-08-23 10:26:27 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
mounted() {
window.onresize = () => {
return (() => {
this.$nextTick(() => {
console.log('this.$refs.wrapper', this.$refs.wrapper)
})
})()
}
},