摘要: 1、子组件可以通过 this.$parent.xxx() 触发父组件的xxx方法。 2、监听vuex中的状态变化 computed: { getDemo() { return this.$store.state.xxx } }, watch: { getDemo(val) { this.demo = 阅读全文
posted @ 2017-12-18 10:35 村里的希望丶 阅读(148) 评论(0) 推荐(0) 编辑