1 普通数组:
2 ng-init="persons=['john','jack']"
3 对象数组:
4 ng-init="persons=[{name:'john',age:20},{name:'jack',age:40}]"

 

相关文章: