摘要:
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 阅读全文