constructor() {
super()
console.log(this.props)//undefined console.log(props)//error
}
constructor(props) {
super()
console.log(this.props)//undefined console.log(props)//{}
}
constructor(props) {
super(props)
console.log(this.props)//{} console.log(props)//{}
}
(代码在这..)