在 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