-
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應用場景
查看全部 -
單項數據流概念
查看全部
舉報