事件监听最好在 componentDidMount 来实现,因为只有在调用 componentDidMount 的 ... shouldComponentUpdate的用法在子组件中: codeSandBox在线演示.
確定! 回上一頁