这篇文章主要介绍了Angularjs中ng-repeat的简单实例的相关资料,这里提供两个实例方法帮助大家彻底掌握这部分内容,需要的朋友可以参考下
Angularjs中ng-repeat的简单实例
第一个例子:使用ng-repeat最简单的例子
<title>angularjs-demo</title> <table width="100%" border="1" cellspacing="0" cellpadding="0"> <tr> <th>学号</th><th>姓名</th><th>分数</th></tr><tr> <td>{{item.id}}</td><td>{{item.name}}</td><td>{{item.score}}</td></tr></table>
第二个例子:添加过滤条件
<title>angularjs-demo</title> <table width="100%" border="1" cellspacing="0" cellpadding="0"> <tr> <th>学号</th><th>姓名</th><th>分数</th></tr><tr> <td>{{item.id}}</td><td>{{item.name}}</td><td>{{item.score}}</td></tr></table>
以上就是AngularJs 中ng-repent的使用实例,如有疑问请留言或者到本站社区交流讨论,感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!
以上来源gao.dai.ma.com搞@代*码网就是Angularjs中ng-repeat的简单实例的详细内容,更多请关注gaodaima搞代码网其它相关文章!