Anjular的ng-repeat

Anjular的ng-repeat不会循环一个二维集合中的一维集合。举个例子:集合 list=  {1,2,{0,1,2},23,222},small={0,1,2},使用ng-repeat" value in  list.small"  ,里面的{0,1,2}不会被循环循环

 

解决方法:若是已经声明过ng-repeat" value in  list" ,可使用value进行循环:方法

ng-repeat" value in  value.small"  集合

相关文章
相关标签/搜索