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