它可以让你在不编写class的情况下使用state以及其他的React特性。 ... useEffect Hook 函数执行时机类似于class 组件的 componentDidMount ...
確定! 回上一頁