与直接使用fetch 不同, useSWR 的第一个参数不是URL,而是key. 这个key ... onClick={() => setPageIndex(pageIndex + 1)}>Next</button> </div> ...
確定! 回上一頁