有一个值
this.state = {countCross: 0}
显示值。之后,将执行某些功能。执行此功能后如何使值0变为1?
初始状态
点击处理功能
clickHandle=()=>{ this.setState({countCross:1}) }