Skip to content

Commit

Permalink
Update src/content/reference/react-dom/hooks/useFormStatus.md
Browse files Browse the repository at this point in the history
Co-authored-by: Xleine <[email protected]>
  • Loading branch information
Yucohny and loveloki authored Oct 20, 2023
1 parent 18c30c2 commit 95c9bb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/reference/react-dom/hooks/useFormStatus.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default App() {
* `method`:字符串,可以是 `'get'``'post'`。表示父级 `<form>` 使用 `GET``POST` [HTTP 方法](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods) 进行提交。默认情况下,`<form>` 将使用 `GET` 方法,并可以通过 [`method`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#method) 属性指定。

[//]: # (链接到 `<form>` 文档。"在 `<form>` 上的 `action` 属性上阅读更多信息。")
* `action`引用传递给父级 `<form>``action` 属性的函数。如果没有父级 `<form>`,则该属性为 `null`。如果在 `action` 属性上提供了 URI 值,或者未指定 `action` 属性,`status.action` 将为 `null`
* `action`一个传递给父级 `<form>``action` 属性的函数引用。如果没有父级 `<form>`,则该属性为 `null`。如果在 `action` 属性上提供了 URI 值,或者未指定 `action` 属性,`status.action` 将为 `null`

#### 注意 {/*caveats*/}

Expand Down

0 comments on commit 95c9bb0

Please sign in to comment.