在vue3中怎么拿到某个元素的所有样式?-灵析社区

中年复健狗

你需要的可能是 `Window.getComputedStyle()`, vue3 中并没有这样的方法 文档:[https://developer.mozilla.org/zh-CN/docs/Web/API/Window/getCo...](https://link.segmentfault.com/?enc=g5pAx9JogE%2B6AlrwSxhWRw%3D%3D.Jz3gzwLUfzKv3lNsqeAar0xfzZ7DakfB5fdrl6LYE5Es0s8O1EG9ZqlhhL4DJkED%2Fj3taLwKXHd0qSFj9x3ncvEMhqgRJ5LY5vfz3GA5dbc%3D)

阅读量:1

点赞量:0

问AI