useRef作为react hooks的一种,主要用在函数组件中,举个栗子:. function App() { const refIns = React.useRef(); return <div> <div ...
確定! 回上一頁