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 b8110fe commit 4c1abb1
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 @@ -63,7 +63,7 @@ export default App() {

* `pending`:布尔值。如果为 `true`,则表示父级 `<form>` 正在等待提交;否则为 `false`

* `data`:实现了 [`FormData interface`](https://developer.mozilla.org/en-US/docs/Web/API/FormData) 的对象,包含父级 `<form>` 正在提交的数据;如果没有活动提交或没有父级 `<form>`,它将为 `null`
* `data`:实现了 [`FormData interface`](https://developer.mozilla.org/en-US/docs/Web/API/FormData) 的对象,包含父级 `<form>` 正在提交的数据;如果没有进行提交或没有父级 `<form>`,它将为 `null`

* `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) 属性指定。

Expand Down

0 comments on commit 4c1abb1

Please sign in to comment.