html单选按钮默认选中 radiobutton控件默认选中( 二 )


默认情况下会选择第一个RadioButton 。选择另一个RadioButton时 , 可以看到在RadioButton之间切换状态 。这样就实现了我们的单选效果 。

推荐阅读