摘要:
在单页面应用vue项目中只能在index.html或App.vue中添加统计代码 const script = document.createElement('script') script.type = 'text/javaScript' //var text = script.textConte 阅读全文
摘要:
在beforeCreate中用js添加样式 在beforDestory钩子中用js移除样式beforeCreate: function() { document.getElementsByTagName("body")[0].className="active"; }, beforeDestroy: 阅读全文