以下示例是关于Javascript中包含nextjs自定义文档用法的示例代码,想了解nextjs自定义文档的具体用法?nextjs自定义文档怎么用?nextjs自定义文档使用的例子?那么可以参考以下相关源代码片段来学习它的具体使用方法。
import { Html, Head, Main, NextScript } from 'next/document'
export default function Document() {
return (
<Html>
<Head />
<body>
<Main />
<NextScript />
</body>
</Html>
)
}
本文地址:https://www.itbaoku.cn/snippets/785499.html