【发布时间】:2017-04-10 06:31:56
【问题描述】:
"type_of_advertisement":["ATM","Banner/Poster","Stalls"]
html代码是
input(type='checkbox', value='Mobile/Communication Tower', ng-model='type_of_advertisement')
| Mobile/Communication Tower
label.checkbox-inline
input(type='checkbox', value='Banner/Poster', ng-model='type_of_advertisement')
| Banner/Poster
label.checkbox-inline
input(type='checkbox', value='Hoarding Board', ng-model='type_of_advertisement')
| Hoarding Board
label.checkbox-inline
input(type='checkbox', value='Stalls', ng-model='type_of_advertisement')
| Stalls
label.checkbox-inline
input(type='checkbox', value='Digital Offline Marketing', ng-model='type_of_advertisement')
| Digital Offline Marketing
label.checkbox-inline
input(type='checkbox', value='Area for Product Display', ng-model='type_of_advertisement')
| Area for Product Display
角码是
type_of_advertisement:[$scope.type_of_advertisement]
问题是当我点击一个复选框时,所有复选框都会自动选择。 并获得类似的 api 响应
"type_of_advertisement":["true"]
那么我可以编写什么代码来获得所需的 api 结果。
【问题讨论】:
标签: javascript html angularjs json