摘要: 1.父传子 1.1父组件准备数据,父组件通过属性pMsg直接传递给子组件 import React, { Component } from 'react' import Child from './Child' export class Parent extends Component { stat 阅读全文
posted @ 2021-05-04 21:17 前端CodingPeasant 阅读(160) 评论(0) 推荐(0) 编辑