摘要: (一)父组件向子组件传值==props 1.在父组件中使用子组件的地方绑定数据 <children :message="message"></children> 2.子组件使用props接收父组件传过来的数据 props:{ message:String } 3.示例: (二)子组件向父组件传值== 阅读全文
posted @ 2020-05-09 15:07 苏苏苏en 阅读(4207) 评论(0) 推荐(0) 编辑