组件的内容 :children 组件的内容,使用 props.children属性获取 unction Button(props) { console.log("props",props); return ( <> <div>Button_children:{props.children}</div> </>(外层没有明确的根标签) ) } <Button >我是内容</Button> refs:获取DOM的 表示