npm的安裝,安裝結束後用npm –v查看安裝是否完成vue
npm install -g cnpm --registry=https://registry.npm.taobao.orgnode
//運行npm的文件(vue項目),須要到到項目的ui(vue項目)目錄下運行如下命令安裝nodemodulegit
npm installnpm
運行nodemodule程序函數
npm run devui
Node.js was installed atthis
/usr/local/bin/nodespa
npm was installed atit
/usr/local/bin/npmast
Make sure that /usr/local/bin is in your $PATH.
git push -u origin yy
提交分支的代碼
git branch git branch -v查看分支
git pull
git checkout master
git merge master
git branch yychao
git pull
git reset --hard origin/master
1)vue ($refs)
首先你的給子組件作標記。demo :<firstchild ref="one"></firstchild>
而後在父組件中,經過this.$refs.one就能夠訪問了這個自組件了,包括訪問自組件的data裏面的數據,調用它的函數