angular.js - angularjs single choice issue
PHPz
PHPz 2017-05-15 17:03:48
0
1
504


How to implement single selection

and add it to the database

PHPz
PHPz

学习是最好的投资!

reply all(1)
为情所困

If you want to single-select, the ng-model of input[radio] needs to be the same, use value to control the value, and then detect the change of this value to change your permission.

<label>
    <input type="radio" ng-model="permission" value="0">
    无管理权
  </label><br/>
  <label>
    <input type="radio" ng-model="permission" ng-value="1">
    部门管理权
  </label><br/>
  <label>
    <input type="radio" ng-model="permission" value="2">
    全员管理权
  </label>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template