const fetcher = url => fetch(url).then(r => r.json()) function App () { const { data, error } = useSWR('/api/data', fetcher) // ... } Copy. และแบบ axios. import ...
確定! 回上一頁