随笔分类 -  VUE2.0

摘要:通信只有两种 父->子 <child :a-like="xxxx"> 子中定义props:['aLike'] 子->父,兄弟<->兄弟 监控:this.$emit('驼峰a-like','参数2'); 接收:this.$on('驼峰a-like',function(id){ console.log( 阅读全文
posted @ 2017-11-29 11:08 mudeng007 阅读(90) 评论(0) 推荐(0)