摘要: 在单页面应用vue项目中只能在index.html或App.vue中添加统计代码 const script = document.createElement('script') script.type = 'text/javaScript' //var text = script.textConte 阅读全文
posted @ 2019-06-26 10:25 执笔画浮尘· 阅读(1223) 评论(0) 推荐(0) 编辑
摘要: 在beforeCreate中用js添加样式 在beforDestory钩子中用js移除样式beforeCreate: function() { document.getElementsByTagName("body")[0].className="active"; }, beforeDestroy: 阅读全文
posted @ 2019-06-26 10:18 执笔画浮尘· 阅读(1209) 评论(0) 推荐(0) 编辑