函式
getInitialProps
使用 getInitialProps 在伺服器端為您的 React 元件獲取動態資料。
getServerSideProps
`getServerSideProps` 的 API 參考。瞭解如何使用 Next.js 在每個請求中獲取資料。
getStaticPaths
`getStaticPaths` 的 API 參考。瞭解如何使用 `getStaticPaths` 獲取資料並生成靜態頁面。
getStaticProps
`getStaticProps` 的 API 參考。瞭解如何使用 `getStaticProps` 生成 Next.js 靜態頁面。
NextRequest
NextRequest 的 API 參考。
NextResponse
NextResponse 的 API 參考。
useReportWebVitals
useReportWebVitals
useRouter
詳細瞭解 Next.js 路由器的 API,並透過 useRouter 鉤子訪問頁面中的路由器例項。
userAgent
userAgent 輔助函式透過附加屬性和方法擴充套件了 Web Request API,以與請求中的使用者代理物件進行互動。
這有幫助嗎?