摘要: cli搭建方法:需安装nodejs先 1、npm install -g cnpm --registry=https://registry.npm.taobao.org //安装cnpm,用cnpm下载东西有时会快一些 2、cnpm i -g vue-cli //安装 vue-cli,i:instal 阅读全文
posted @ 2017-04-17 23:10 吃个石头 阅读(3656) 评论(0) 推荐(0) 编辑
摘要: 适用于vue cli搭建的项目 vue-router模块下载及记录到package.json中: router.config.js中 使用: 大概思路: 引入vue-router模块→Vue.use(模块)→实例化→挂载实例→使用 实例化的参数:new VueRouter({routes:[{pat 阅读全文
posted @ 2017-04-17 22:19 吃个石头 阅读(992) 评论(0) 推荐(0) 编辑