可以通过任何方式访问编号状态。例如
this.setState({123:hello}) 现在如何访问此状态
this.setState({123:hello})
现在如何访问此状态
console.log(this.state.123) //this will show error
可以通过任何方式访问编号状态。例如this.setState({123:hello})现在如何访问此状态console.log(this.state.123)//这将显示错误
您可以执行以下操作: