摘要: 父组件向子组件传值 父组件通过属性进行传递,子组件通过props获取 //父组件 class CommentList extends Component{ render(){ return( <div> <Comment comment = {information} /> </div> ) } } 阅读全文
posted @ 2019-12-19 20:22 一一诺 阅读(253) 评论(0) 推荐(0) 编辑