函式
getInitialProps
使用 getInitialProps 在伺服器端為您的 React 元件獲取動態資料。
getServerSideProps
`getServerSideProps` 的 API 參考。了解如何使用 Next.js 在每次請求時獲取資料。
getStaticPaths
`getStaticPaths` 的 API 參考。了解如何使用 `getStaticPaths` 獲取資料並產生靜態頁面。
getStaticProps
`getStaticProps` 的 API 參考。了解如何使用 `getStaticProps` 搭配 Next.js 產生靜態頁面。
NextRequest
NextRequest 的 API 參考。
NextResponse
NextResponse 的 API 參考。
useAmp
在頁面中啟用 AMP,並使用 AMP 設定控制 Next.js 新增 AMP 到頁面的方式。
useReportWebVitals
useReportWebVitals
useRouter
深入了解 Next.js Router 的 API,並使用 useRouter hook 在您的頁面中存取 Router 實例。
userAgent
userAgent 輔助程式擴展了 Web Request API,提供了額外的屬性和方法來與請求中的使用者代理物件互動。
這有幫助嗎?