angular 复选框至少选中一个

<input type="checkbox" ng-model="form.cb1" ng-required="form.cb1 || form.cb2 || form.cb3">
<input type="checkbox" ng-model="form.cb2" ng-required="form.cb1 || form.cb2 || form.cb3">
<input type="checkbox" ng-model="form.cb3" ng-required="form.cb1 || form.cb2 || form.cb3">

未经允许不得转载:蒋丽君的小站 » angular 复选框至少选中一个

赞 (0)