当重新渲染组件时,按以下顺序调用这些方法:. static getDerivedStateFromProps(); shouldComponentUpdate(); render(); getSnapshotBeforeUpdate(); componentDidUpdate ...
確定! 回上一頁