Skip to content

Commit 93daacc

Browse files
committed
docs: translate input
1 parent 48ac3ff commit 93daacc

File tree

1 file changed

+1
-1
lines changed
  • src/content/reference/react-dom/components

1 file changed

+1
-1
lines changed

src/content/reference/react-dom/components/input.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ title: "<input>"
3434

3535
[`formAction`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#formaction): 字符串或函数。设置了 `type="submit"``type="image"` 属性的 `input` 标签,会覆盖父表单对应属性 `<form action>`。当向 `formAction` 传递 URL 时,表单会表现为标准 HTML 表单;当传递函数时,该函数将处理表单提交。详见 [`<form action>`](/reference/react-dom/components/form#props)
3636

37-
你可以通过传递以下属性之来[使输入框成为受控组件](#controlling-an-input-with-a-state-variable)
37+
你可以通过传递以下属性之一来[使输入框成为受控组件](#controlling-an-input-with-a-state-variable)
3838

3939
* `checked`:布尔值,控制复选框或单选按钮是否被选中。
4040
* `value`:字符串,控制文本框的输入文本(如果是单选按钮,则为其表单数据)。

0 commit comments

Comments
 (0)