// isClick默认是true
const { isClick} = this.state;
if (isClick) {
this.setState({ isClick: false });
// 处理事件
setTimeout(function () { that.setState({ isClick: true }) }, 1000);
}
Stella981
2021-10-12
// isClick默认是true
const { isClick} = this.state;
if (isClick) {
this.setState({ isClick: false });
// 处理事件
setTimeout(function () { that.setState({ isClick: true }) }, 1000);
}