const { data } = useSWR( key, fetcher, options) const { data } ... //key 為函數 useSWR(['/api/user', params], fetcher) // key 為數組 複製代碼.
確定! 回上一頁