setState({ count: this.state.count + 1 })}> Click me </button> </div> ); } } ... Hook 使用了JavaScript 的闭包机制,而不用在JavaScript 已经提供了解决方案的 ...
確定! 回上一頁