首页 > angular 中怎么方便的得到许多被选中的checkbox的某个属性的值?

angular 中怎么方便的得到许多被选中的checkbox的某个属性的值?

在angular中如何获得由ng-repeat生成的多个被选中checkbox的值

<tr ng-repeat="ce in certs">
    <td>
        <input type="checkbox" class="cer" certid="ce.id">{{checkedList}}
    </td>
    <td>{{$index+1}}</td>
    <td ng-bind="ce.name"></td>
    <td ng-bind="ce.status_name"></td>
</tr>                                                                                        

例如我想获得被选中的checkbox的certid的值,应该怎么获得?


http://stackoverflow.com/questions/11872832/how-to-respond-to-clicks-on-a-checkbox-in-an-angularjs-directive

http://stackoverflow.com/questions/12648466/how-can-i-get-angular-js-checkboxes-with-select-unselect-all-functionality-and-i


给每个input绑定ng-model=checkList[ce.id],然后在js里遍历这个表就行

【热门文章】
【热门文章】