因为setState更新可能是异步,当你在事件绑定中操作state 的时候,setState更新就是异步的。 class Counter extends React.Component { constructor(props) ...
確定! 回上一頁