转自:https://www.cnblogs.com/best/tag/Angular/
1.
1 <html> 2 3 <head> 4 <meta charset="utf-8"> 5 <script src="http://cdn.static.runoob.com/libs/angular.js/1.4.6/angular.min.js"></script> 6 7 </head> 8 9 <body> 10 11 12 13 14 <div ng-app="" ng-init="names=[ 15 {name:'Jani',country:'Norway'}, 16 {name:'Hege',country:'Sweden'}, 17 {name:'Kai',country:'Denmark'}]"> 18 <ul> 19 <li ng-repeat="x in names"> 20 {{x.name+' '+x.country}} 21 </li> 22 </ul> 23 </div> 24 </body> 25 26 </html>