在JSX中option的默认值是用defalutValue,我想根据state状态判断哪个option是默认值,该怎么做?
谢谢大家。
在 select 的 value 属性绑定 state 就好了
select
value
state