npm的安装,安装结束后用npm –v查看安装是否完成
npm install -g cnpm --registry=https://registry.npm.taobao.org
//运行npm的文件(vue项目),需要到到项目的ui(vue项目)目录下运行以下命令安装nodemodule
npm install
运行nodemodule程序
npm run dev
Node.js was installed at
/usr/local/bin/node
npm was installed at
/usr/local/bin/npm
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里面的数据,调用它的函数