React的事件函数为什么要绑定this

问题描述在React中的事件处理函数中,我们需要在构造函数中将方法绑定到组件实例上class Toggle extends React.Component { constructor(props)
react this 2021年06月02日 412次浏览