Skip to content

Commit 58e6f22

Browse files
author
Xleine
authored
Update src/content/reference/react-dom/components/select.md
1 parent 38defc4 commit 58e6f22

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/select.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ title: "<select>"
4040

4141
你可以通过传递 `value` 属性 [以控制选择框](#controlling-a-select-box-with-a-state-variable):
4242

43-
* `value`:一个字符串(如果指定 [`multiple={true}`](#enabling-multiple-selection),那么 `value` 也可以是一个字符串数组)。当某一个选项(option)被选中时,`value` 为其对应的值。每个字符串值都与嵌套在 `<select>` 内的 `<option>``value` 属性相匹配
43+
* `value`:一个字符串(如果指定 [`multiple={true}`](#enabling-multiple-selection),那么 `value` 也可以是一个字符串数组)。当某一个选项(option)被选中时,`value` 为其对应的值。每个字符串值都与嵌套在 `<select>` 内的 `<option>``value` 属性相匹配
4444

4545
当你传递 `value` 时,你必须同时传递一个 `onChange` 处理函数,用于更新传递的值。
4646

0 commit comments

Comments
 (0)