angular.js - angularjs中的checkbox如何传值
仅有的幸福
仅有的幸福 2017-05-15 16:53:24
0
1
637

有一个数组

 $scope.colors = [{
                        'id':'1',
                        'name':'red'
                    },{
                        'id':'2',
                        'name':'green'
                    },{
                        'id':'3',
                        'name':'blue'
                    }];

如何生成一组checkbox并且post到后端格式为clors:[{id:1}...]

仅有的幸福
仅有的幸福

reply all(1)
淡淡烟草味

I took a look. You can take a look at a demo I wrote. It may be helpful to you.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template