之前的代碼是這樣的<select class="planstatus-select" ng-model="planStatus" ng-options="planStatus.id as planStatus.name for planStatus in planStatuses" ng-change="planStatusChange()"></select>,效果是這樣現(xiàn)在改成這種狀態(tài)代碼寫(xiě)成這樣<label ng-repeat="planStatus in planStatuses"><input type="radio" name="a" value="planStatus.name" ng-model="planStatus" ng-click="planStatusChange()"> {{planStatus.name}}</label>出現(xiàn)問(wèn)題 請(qǐng)大神幫忙 input ng-model 應(yīng)該綁定誰(shuí) name 和value該如何寫(xiě)
angular 把select 修改radio
慕萊塢森
2018-08-10 10:09:07