摘要:
父子组件属性传递 注意:0、谁被引用,谁就算子组件 1、属性命名最好完全小写,否则需要如下格式转换:myAttr == my-attr 2、引入的vue组件后必须通过 components 注册才能使用 3、属性的传递必须子组件 props 注册才能使用 4、prop默认是单向绑定:当父组件的属性变 阅读全文
posted @ 2018-02-07 09:21
贝尔塔猫
阅读(663)
评论(0)
推荐(0)
摘要:
vuex的基本学习 http://vuex.vuejs.org/en/ https://github.com/vuejs/vuex/tree/dev/examples/shopping-cart store.js: actions.js getter.js mutations.js mutation 阅读全文
posted @ 2018-02-07 09:20
贝尔塔猫
阅读(1217)
评论(0)
推荐(0)
摘要:
路由 https://router.vuejs.org/zh-cn/advanced/navigation-guards.html router.js main.js 根目录index.html,添加一个div#app 标签。 index.vue 演示子路由 扩展:演示懒加载路由 http://ro 阅读全文
posted @ 2018-02-07 09:19
贝尔塔猫
阅读(346)
评论(0)
推荐(0)