这是Next.js性能好的根本原因:组件直接在服务器上渲染成HTML再发给浏览器,页面数据在传输过程中就已经是最终形态,不需要客户端再跑一遍JavaScript才能看到内容。 服务端组件里可以直接写 async 函数、直接 fetch 数据库、直接读取文件系统,一切都发生在服务端。
Some results have been hidden because they may be inaccessible to you
Show inaccessible resultsSome results have been hidden because they may be inaccessible to you
Show inaccessible results