Skip to content

Commit

Permalink
Update src/content/reference/react-dom/components/select.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Xleine authored Jun 20, 2023
1 parent 38defc4 commit 58e6f22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/reference/react-dom/components/select.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ title: "<select>"

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

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

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

Expand Down

0 comments on commit 58e6f22

Please sign in to comment.