84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
How to get the values of an ng-repeat radio and checkbox nested in ng-repeat? The code is as follows:
22222 22222
22222
How to get input[radio] and input[checkbox] in double-layer ng-repeat? How should ng-model be set?
$scope.result = {}; $scope.ques = { ques_items: [ { ques_item_type: 1, ques_item_id: 1, //问题id ques_item_options: [ { option_id: 'A', option_label: '测试1' }, { option_id: 'B', option_label: '测试2' }, { option_id: 'C', option_label: '测试3' }, { option_id: 'D', option_label: '测试4' } ] }, { ques_item_type: 2, ques_item_id: 2, ques_item_options: [ { option_id: 'A', option_label: '测试1' }, { option_id: 'B', option_label: '测试2' }, { option_id: 'C', option_label: '测试3' }, { option_id: 'D', option_label: '测试4' } ] }, { ques_item_type: 2, ques_item_id: 3, ques_item_options: [ { option_id: 'A', option_label: '测试1' }, { option_id: 'B', option_label: '测试2' }, { option_id: 'C', option_label: '测试3' }, { option_id: 'D', option_label: '测试4' } ] } ] }
result: {"1":"D","2":{"A":true,"B":true,"C":true,"D":true},"3":{"D":false}}
I’ve been doing this recently too. If you have any problem with the value, please explain it in detail. You can also bind the model
I’ve been doing this recently too. If you have any problem with the value, please explain it in detail. You can also bind the model