摘要: 一、父组件向子组件传值 step: 1. 给父组件绑定自定义属性, 2. 子组件通过props接收传递的值。 父组件中: <template> <div> <v-child :msg='msg'></v-child> </div> </template> 子组件中: <template> <div> 阅读全文
posted @ 2020-11-03 21:00 ss_shen 阅读(176) 评论(0) 推荐(0)