vue-改变body的css样式 beforeCreate() { document.querySelector('body').setAttribute('style', 'background-color:#f4f4f4; color:#666666;') }, beforeDestroy() { document.body.removeAttribute('style') },