一个组件里访问基本元素可以用 this.$refs.xxx ,如果要访问子组件要用 this.$refs.xxx.$el this.$refs.ba.style = "color: ...
path模块是node.js中处理路径的核心模块。可以很方便的处理关于文件路径的问题。 const path = require('path') // 拼接路径 function resolv ...
{ "name": "webpack-demo", "version": "1.0.0", "description": "learning webpack", ...