SelinaChan 2020-06-14
npm install webpack -g
npm install -g @vue/cli-init
vue init webpack [projectName]
注意: vue不是内部命令错误修复。全局搜索vue.cmd,将此目录配入环境变量即可。
npm run dev
npm run build
npm install element-ui
在main.js
中写入一下内容
import Vue from ‘vue‘; import ElementUI from ‘element-ui‘; import ‘element-ui/lib/theme-chalk/index.css‘; import App from ‘./App.vue‘; Vue.use(ElementUI); new Vue({ el: ‘#app‘, render: h => h(App) });
background-color: blue;background-color: yellow;<input type="button" value="变蓝" @click="changeColorT