// isClick默认是true const { isClick} = this.state; if (isClick) { this.setState({ isClick: false }); // 处理事件 setTimeout(function () { that.setState({ isClick: true }) }, 1000); } 来源:oschina链接:https://my.oschina.net/u/3407708/blog/4298512 标签 react