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