上一页 1 ··· 7 8 9 10 11 12 下一页
摘要: 安装git, 1.登陆上github 2.New repository 3.填写资料 4.在文件夹下,git bash here(新建一个空的文件夹,在文件夹里面git bash here) git config --global user.name "gitname" git config --g 阅读全文
posted @ 2019-11-27 10:21 天空003 阅读(329) 评论(0) 推荐(0) 编辑
摘要: 1.安装(npm install vuex --save) 2.创建存放变量的 3.在main.js中挂载一下 简单使用: mutations中定义方法,组件中commit 阅读全文
posted @ 2019-11-21 16:04 天空003 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 1.安装vue-router npm install vue-router --save 2.在模块化工程中使用它 (1)导入路由对象,并且调用Vue.use(VueRouter) (2)创建路由实例,并且传入路由映射配置 (3)在Vue实例中挂载创建的路由实例 3.使用vue-router的步骤 阅读全文
posted @ 2019-11-19 11:37 天空003 阅读(21688) 评论(0) 推荐(0) 编辑
摘要: 第一种方法:vue ui 启动一个本地服务器 第二种方式:找到隐藏的文件修改 第三种方式:自定义配置:起别名(alias) vue.config.js 阅读全文
posted @ 2019-11-18 16:45 天空003 阅读(1559) 评论(0) 推荐(0) 编辑
摘要: VUE-CLI3 与 VUE-CLI2 版本有很大区别: 1.VUE-CLI3是基于webpack4打造,VUE-CLI2还是webpack3 2.VUE-CLI3的设计原则是“0配置”,移除了配置文件根目录下的build和config等目录 3.VUE-CLI3提供了vue ui命令,提供了可视化 阅读全文
posted @ 2019-11-18 16:09 天空003 阅读(971) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-11-18 10:54 天空003 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 1.初始化项目( vue init webpack vuecli2test) 解决办法:C:\Program Files\nodejs\node_globall目录,把vue.ps1删了 2. 3.接下来创建项目(vue init webpack 项目名称)(创建文件夹),文件夹名称中不能有大写 ( 阅读全文
posted @ 2019-11-18 09:48 天空003 阅读(666) 评论(0) 推荐(0) 编辑
摘要: 使用vuecli(俗称脚手架)可以快速搭建Vue开发环境以及对应的webpack配置 使用前提:node npm和webpack npm install webpack -g 1.CLI3的安装方式(npm install @vue/cli@3.2.1 -g)这里全局安装3.2.1 vue -V(查 阅读全文
posted @ 2019-11-15 16:26 天空003 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 1.安装(npm install --save-dev webpack-dev-server@2.9.1) 这里我知道定了版本(CLI2的webpack版本3.6.0, webpack-dev-server为2.9.1) 2.webpack.config.js中配置 备注: 默认端口:8080; 接 阅读全文
posted @ 2019-11-15 11:35 天空003 阅读(464) 评论(0) 推荐(0) 编辑
摘要: 1.安装局部webpack时报错 解决办法:https://blog.csdn.net/qq_35624642/article/details/78393035 删除该文件夹下的.npmrc文件 2. 阅读全文
posted @ 2019-11-15 10:00 天空003 阅读(187) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 下一页