摘要: 安装: 配置 D:\workspace\xxx\build\dev-server.js D:\workspace\xxx\db.json https://github.com/miaomiaotab/json-server 下面这两个文件夹项目生成是没有的,我自己拷贝过来的: D:\workspac 阅读全文
posted @ 2018-06-10 23:42 miaomiaotab 阅读(451) 评论(0) 推荐(0) 编辑
摘要: 注册 使用 两个例子: 阅读全文
posted @ 2018-06-10 20:49 miaomiaotab 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 登录 | 注册 | 关于 ... 阅读全文
posted @ 2018-06-10 18:35 miaomiaotab 阅读(883) 评论(0) 推荐(0) 编辑
摘要: 利用HTML和CSS实现常见的布局 单列布局 水平居中 水平居中的页面布局中最为常见的一种布局形式,多出现于标题,以及内容区域的组织形式,下面介绍四种实现水平居中的方法(注:下面各个实例中实现的是child元素的对齐操作,child元素的父容器是parent元素) 使用inline-block 和 阅读全文
posted @ 2018-06-10 18:30 miaomiaotab 阅读(261) 评论(0) 推荐(0) 编辑
摘要: https://meyerweb.com/eric/tools/css/reset/ https://blog.csdn.net/suejun/article/details/73302923 重置css样式: 阅读全文
posted @ 2018-06-10 17:15 miaomiaotab 阅读(168) 评论(0) 推荐(0) 编辑
摘要: D:\workspace\xxx\src\main.js D:\workspace\xxx\src\components\layout.vue 阅读全文
posted @ 2018-06-10 17:11 miaomiaotab 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 接上文 一个简单的例子 vux mutation改变状态 D:\workspace\xxx\src\main.js 定义actions D:\workspace\xxx\src\components\Apple.vue 就可以使用用.dispatch('increase', this.price)方 阅读全文
posted @ 2018-06-10 16:32 miaomiaotab 阅读(307) 评论(0) 推荐(0) 编辑
摘要: D:\workspace\xxx\src\main.js 引用、注册、定义state、mutations D:\workspace\xxx\src\App.vue computed计算并呈现结果(show) D:\workspace\xxx\src\components\Apple.vue 调用mu 阅读全文
posted @ 2018-06-10 16:16 miaomiaotab 阅读(754) 评论(0) 推荐(0) 编辑
摘要: 错误代码 正确代码: 分析:构造器写法写错了应该是new Vuex.Store({}) 下面请忽略。。 let store = new Vuex({ state: { totalPrice: 0 }, mutations: { increment (state, price) { state.tot 阅读全文
posted @ 2018-06-10 16:03 miaomiaotab 阅读(5862) 评论(0) 推荐(0) 编辑
摘要: D:\workspace\xxx\src\main.js D:\workspace\xxx\src\App.vue D:\workspace\xxx\src\components\Apple.vue D:\workspace\xxx\src\components\Banana.vue D:\work 阅读全文
posted @ 2018-06-10 14:32 miaomiaotab 阅读(928) 评论(0) 推荐(0) 编辑
摘要: D:\workspace\xxx\src\main.js 使用 阅读全文
posted @ 2018-06-10 14:22 miaomiaotab 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 安装vue-router模块 使用vue-router前要先安装vue-router库 使用vue-router vue-router有三个要素:路由map 路由视图 路由导航。路由map指路由与组件的映射关系;路由视图指路由映射对应组件的渲染位置;路由导航指可以使地址栏发生变化的导航链接。一、路由 阅读全文
posted @ 2018-06-10 13:57 miaomiaotab 阅读(824) 评论(0) 推荐(0) 编辑
摘要: router-link-active router-link-exact-active router-link-active TO DO 阅读全文
posted @ 2018-06-10 13:53 miaomiaotab 阅读(444) 评论(0) 推荐(0) 编辑
摘要: <!-- 当前目录 --> <router-link to="apple">to apple</router-link> <!-- 根目录 --> <router-link to="/apple">to apple</router-link> <!-- 当前目录 --> <router-link t 阅读全文
posted @ 2018-06-10 13:31 miaomiaotab 阅读(374) 评论(0) 推荐(0) 编辑
摘要: 可以看到这段源代码 D:\workspace\xxx\node_modules\vue-router\types\router.d.ts 阅读全文
posted @ 2018-06-10 11:48 miaomiaotab 阅读(538) 评论(0) 推荐(0) 编辑
摘要: D:\workspace\xxx\index.html 没动过 D:\workspace\xxx\src\main.js D:\workspace\xxx\src\App.vue D:\workspace\xxx\src\components\Apple.vue D:\workspace\xxx\s 阅读全文
posted @ 2018-06-10 11:38 miaomiaotab 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 错误代码 D:\workspace\xxx\src\main.js 正确代码1 正确代码2 错误分析: router才是合法参数,缩写的时候要注意。 另外 path: './apple', 应该是path: '/apple' 阅读全文
posted @ 2018-06-10 11:07 miaomiaotab 阅读(2090) 评论(0) 推荐(0) 编辑
摘要: 瞎找了一天都没找到问题所在(问题代码) f分割线 app.vue 正确代码 原来是小写的问题,el: '#app',id为app的元素,这个a字母是小写的!!!!!!! main.js 正确代码 components\Apple.vue router\index.js 阅读全文
posted @ 2018-06-10 10:49 miaomiaotab 阅读(11537) 评论(0) 推荐(0) 编辑