-
vue 框架图
查看全部 -
配置设置:
查看全部 -
history-yes
Airbnb
In dedicated config files
查看全部 -
vue课程总结
查看全部 -
计算机属性
监听所有变量的变化
侦听
whatch: {
//监听制定属性的变化
msg: function(newVal,oldVal){
}}
查看全部 -
vue --version 3.0以上可以使用create命令
cnpm cli安装
cnpm install -g @vue/cli 安装3.0以上最新版本
cli创建
vue create hello_world
项目运行
npm run serve
可视化创建vue cli
vue ui
查看全部 -
Vue-router
创建templete模板
router内导入import Info from '../views/Info.vue'
查看全部 -
一、Vuex全局状态管理定义
import Vue from 'vue' //1.导入vuex import Vuex from 'vuex' //2.use Vue.use(Vuex) export default new Vuex.Store({ //3.vuex 状态 state: { count: 0 }, //4.只有使用mutations 改变state值 mutations: { increase: function () { this.state.count++ } }, actions: { }, modules: { } })
二、使用
//1.导入store/index.js import store from '../store/index.js' export default { name: 'Info', //2.引入store store, data: function () { return { msg: store.state.count } }, methods: { add () { //3.通过store.commit('mutations内方法名') store.commit('increase') } } }
查看全部 -
如何集成vue
查看全部 -
git clone
git status
git branch -a 查看分支
git add . (表示所有文件)+git commit -m "" + git push origin master 完成提交
git remote -v 查看远程仓库(仓库名默认为origin)
git checkout -b [branch name] 创建分支
git checkout [branch name]也可以切换到其他分支
git merge [local branch name]合并本地分支
git branch -D [local branch name] 删除本地分支
git push origin :dev 冒号前面留空表示本地为空,删除远程分支
git reset --hard head^ 退回到上一个版本
git log / git reflog查看版本日志
git reset --hard HEAD@{1} 回退到某个历史版本
查看全部 -
watch和computed的总结
查看全部 -
vuex介绍
查看全部 -
vuex介绍
查看全部 -
vuex应用场景
查看全部 -
单项数据流概念
查看全部
举报