mounted() {
// body背景颜色
document.querySelector("body").setAttribute("style", "background-color:#ebebeb");
},
beforeDestroy() {
document.querySelector("body").removeAttribute("style");
},
vue中修改body颜色
最新推荐文章于 2024-04-18 20:20:27 发布