在函数组件里,没有this, 不能分配读取this.state, 有了Hook以后,就很简单了. import React, { useState } from 'react'; function Example() ...
確定! 回上一頁