摘要: 父组件引用子组件: MessageInput socket={socket} myRef={textareaRef} addChatRecord={updateChatRecord} /></div> 子组件: const MessageInput = (props: textareaProps) 阅读全文