react-dom.development.js:500 Warning: Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>.
in option (created by Select)
in select (created by Select)
in Select
分析
警告信息,已经告知很明显,使用在原生的select节点上标示 value 或 defaultValue,就可以指定 options项指定传入进来的默认值,来替代之前常用的在 option上判断 selected 的做法