A Vue.js project
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
# run e2e tests
npm run e2e
# run all tests
npm test
For a detailed explanation on how things work, check out the guide and docs for vue-loader.
###心得
Vue.set(原有的属性,在原有属性内新增的属性,新增属性的值), 用于在已有的属性中新增一个数据并添加数据绑定,如果不用这种方式实现则新增的数据默认没有数据绑定