摘要:
1、 子组件不传递参数,父组件也不接受参数 // 子组件this.$emit('test')// 父组件@test='test'test() { } 2、 子组件传递一个参数,父组件接收时不带形参 // 子组件this.$emit('test'... 阅读全文
posted @ 2020-09-27 17:04
Daotin
阅读(505)
评论(0)
推荐(0)
摘要:
1、 子组件不传递参数,父组件也不接受参数 // 子组件 this.$emit('test') // 父组件 @test='test' test() { } 2、 子组件传递一个参数,父组件接收时不带形参 // 子组件 this.$emit('test','哈哈') // 父组件 @test='te 阅读全文
posted @ 2020-09-27 17:04
Daotin
阅读(1437)
评论(0)
推荐(0)

浙公网安备 33010602011771号