import React from 'react';
export default class Text extends React.Component{
// 构造函数
constructor(props){
super(props);
this.style = {
background:'#f00',color:'#fff'};
this.arr = [
{
"name":"zhang","age":34},
{
"name":"li","age":35},
{
"name":"wang","age":14},
{
"name":"zhao","age
react父子组件传值示例
最新推荐文章于 2023-12-04 21:15:00 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)