diff --git a/apps/docs/content/zh-hans/docs/01-app/01-getting-started/02-project-structure.mdx b/apps/docs/content/zh-hans/docs/01-app/01-getting-started/02-project-structure.mdx index 29392379..8bd4e969 100644 --- a/apps/docs/content/zh-hans/docs/01-app/01-getting-started/02-project-structure.mdx +++ b/apps/docs/content/zh-hans/docs/01-app/01-getting-started/02-project-structure.mdx @@ -203,8 +203,6 @@ Next.js 对项目文件组织方式**不做强制要求**,但提供了多种 height="863" /> - - ### 文件同置 (Colocation) 在 `app` 目录中,嵌套文件夹定义了路由结构。每个文件夹代表一个路由片段,对应 URL 路径中的相应片段。 diff --git a/apps/docs/content/zh-hans/docs/01-app/01-getting-started/10-updating-data.mdx b/apps/docs/content/zh-hans/docs/01-app/01-getting-started/10-updating-data.mdx index ae41d722..675af726 100644 --- a/apps/docs/content/zh-hans/docs/01-app/01-getting-started/10-updating-data.mdx +++ b/apps/docs/content/zh-hans/docs/01-app/01-getting-started/10-updating-data.mdx @@ -1,9 +1,9 @@ --- -source-updated-at: 2025-06-01T01:32:19.000Z -translation-updated-at: 2025-06-01T01:32:19.000Z +source-updated-at: 2025-06-03T15:30:49.000Z +translation-updated-at: 2025-06-05T23:37:56.407Z title: 如何更新数据 -nav_title: 更新数据 -description: 了解如何在 Next.js 应用中更新数据。 +nav_title: 数据更新 +description: 学习如何在 Next.js 应用中更新数据。 related: title: API 参考 description: 通过阅读 API 参考文档了解更多本页提到的功能特性。 @@ -13,13 +13,13 @@ related: - app/api-reference/functions/redirect --- -你可以使用 React 的 [Server Functions](https://react.dev/reference/rsc/server-functions) 在 Next.js 中更新数据。本页将介绍如何[创建](#creating-server-functions)和[调用](#invoking-server-functions)服务端函数。 +您可以使用 React 的 [服务端函数 (Server Functions)](https://react.dev/reference/rsc/server-functions) 在 Next.js 中更新数据。本页将介绍如何[创建](#creating-server-functions)和[调用](#invoking-server-functions)服务端函数。 ## 服务端函数 -服务端函数是在服务器端执行的异步函数。由于它们是通过客户端网络请求调用的,因此本质上是异步的。当作为 `action` 的一部分被调用时,它们也被称为**服务端操作 (Server Actions)**。 +服务端函数是在服务器端执行的异步函数。由于它们是通过客户端发起的网络请求调用的,因此本质上是异步的。当作为 `action` 的一部分被调用时,它们也被称为**服务端操作 (Server Actions)**。 -按照约定,`action` 是传递给 `startTransition` 的异步函数。在以下情况下,服务端函数会自动被 `startTransition` 包裹: +按照约定,`action` 是传递给 `startTransition` 的异步函数。服务端函数在以下情况下会自动被 `startTransition` 包裹: - 通过 `action` 属性传递给 `