option 添加 selected = "selected" 属性就是默认选项
文章由爱资料原创本文地址:https://www.apizl.com/archives/view-839-1.html,转载请以链接形式标明本文地址!
<
select
id
=
"sel"
>
<
option
value
=
"1"
>1</
option
>
<
option
value
=
"2"
selected
=
"selected"
>2</
option
>
<
option
value
=
"3"
>3</
option
>
</
select
>
关键字词: