组件安装后,React将使用DOM元素调用 ref 回调,并在卸载时使用 null 调用它。 因此,例如,您可以简单地使用 this.stepInput 访问它。 通过将 ref 回调 ...
確定! 回上一頁