1 普通数组: 2 ng-init="persons=[‘john‘,‘jack‘]" 3 对象数组: 4 ng-init="persons=[{name:‘john‘,age:20},{name:‘jack‘,age:40}]"
AngularJS初始化普通数组和对象数组
原文:http://www.cnblogs.com/cag2050/p/5100427.html