有一个数组
$scope.colors = [{ 'id':'1', 'name':'red' },{ 'id':'2', 'name':'green' },{ 'id':'3', 'name':'blue' }];
如何生成一组checkbox并且post到后端格式为clors:[{id:1}...]
I took a look. You can take a look at a demo I wrote. It may be helpful to you.
I took a look. You can take a look at a demo I wrote. It may be helpful to you.