beforeCreate () { document.querySelector('body').setAttribute('style', 'background-color:#fff') }, beforeDestroy () { document.querySelector('body').removeAttribute('style') }
vue框架中更改body,html页面背景颜色
最新推荐文章于 2024-07-03 23:56:01 发布
beforeCreate () { document.querySelector('body').setAttribute('style', 'background-color:#fff') }, beforeDestroy () { document.querySelector('body').removeAttribute('style') }