... 组件的 this.state 一样,将所有的state 放到一个 object 中,这样只需一个state 变量即可: const [state, setState] = useState({ width: 100, ...
確定! 回上一頁