在 AngularJS 中无法动态获取单选按钮设置的值
若要获取单选按钮的值,请将 [$index] 添加到每个 ng-model,如下所示
<td><input type = "radio" ng-model = "classes.satisfies[$index]" value = "Country1"> India</td> <td><input type = "radio" ng-model = "classes.satisfies[$index]" value = "Country 2"> US</td>
上述内容将在 AngularJS 中动态呈现结果。
广告
数据结构
网络
关系数据库管理系统
操作系统
Java
iOS
HTML
CSS
Android
Python
C 编程
C++
C#
MongoDB
MySQL
Javascript
PHP