我想在默认情况下选择一个单选按钮。据我所知,我应该添加检查属性:HTML/Select单选按钮不起作用
<table>
<tr>
<b> Storage </b>
</tr>
<tr>
<td>
<div class="form-group">
<input type="radio" name="store" value="local" ng-model="store" checked="checked" /> Local
</div>
</td>
<td>
<div class="form-group">
<input type="radio" name="store" value="second" ng-model="store" /> Second (Amazon)
</div>
</td>
<td>
<div class="form-group">
<input type="radio" name="store" value="cloud" ng-model="store" /> Cloud
</div>
</td>
</tr>
</table>
但是本地不默认选中(没有检查)。为什么?提前
感谢
我已经试过了。相同... – MiddleWare
https://jsfiddle.net/4xkmd2oc/1/只是在jsfiddle中粘贴了你的代码。它正在工作......看起来你的角色绑定正在破坏它 – FKutsche