对于每个自定义组件,您都不能假定它甚至具有任何引用,它取决于实现。 inputEl.current.input.focus const inputEl = useRef(); ... <Input ref={inputEl} onChange={ ...
確定! 回上一頁