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