vue 为单独一个页面添加特定样式
在
beforeCreate
中用js添加样式
在beforDestory钩子中用js移除样式
beforeCreate: function() {
document.getElementsByTagName("body")[0].className="active";
},
beforeDestroy: function() {
document.body.removeAttribute("class","active");
}