diff --git a/src/content/reference/react-dom/components/input.md b/src/content/reference/react-dom/components/input.md index 64a17eb549..0e6c850e69 100644 --- a/src/content/reference/react-dom/components/input.md +++ b/src/content/reference/react-dom/components/input.md @@ -32,9 +32,9 @@ title: "" `` 支持所有 [常见的元素属性](/reference/react-dom/components/common#props)。 -- [`formAction`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#formaction): A string or function. Overrides the parent `
` for `type="submit"` and `type="image"`. When a URL is passed to `action` the form will behave like a standard HTML form. When a function is passed to `formAction` the function will handle the form submission. See [``](/reference/react-dom/components/form#props). +[`formAction`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#formaction): 字符串或函数。设置了 `type="submit"` 或 `type="image"` 属性的 `input` 标签,会覆盖父表单对应属性 ``。当向 `formAction` 传递 URL 时,表单会表现为标准 HTML 表单;当传递函数时,该函数将处理表单提交。详见 [``](/reference/react-dom/components/form#props)。 -You can [make an input controlled](#controlling-an-input-with-a-state-variable) by passing one of these props: +你可以通过传递以下属性之一来[使输入框成为受控组件](#controlling-an-input-with-a-state-variable): * `checked`:布尔值,控制复选框或单选按钮是否被选中。 * `value`:字符串,控制文本框的输入文本(如果是单选按钮,则为其表单数据)。