同步执行onTypeChange方法
handleZoneCode = (e:any) => {
this.setState({
zoneCode: e,
},()=>this.onTypeChange(this.state.videoType));
};
异步执行onTypeChange方法
handleZoneCode = (e:any) => {
this.setState({
zoneCode: e,
});
this.onTypeChange(this.state.videoType)
};