angularjs遍历两次
来源:互联网 发布:黎巴嫩真主党 知乎 编辑:程序博客网 时间:2024/06/05 11:53
@{ Layout = null;}<!DOCTYPE html><html ng-app="my_app"><head> <meta name="viewport" content="width=device-width" /> <title>Index</title> <script src="~/Scripts/jquery-1.10.2.min.js"></script> <script src="~/Scripts/angular.min.js"></script> <script type="text/javascript"> var app = angular.module("my_app", []); app.controller('my_controller', function ($scope) { var vm = $scope.vm = {}; vm.classes = [ { classID: 1, className: '一班', students: [ { studentID: 1, studentName: '张三' }, { studentID: 2, studentName: '李四' } ] }, { classID: 2, className: '二班', students: [ { studentID: 3, studentName: '王五' }, { studentID: 4, studentName: '马六' } ] }, { classID: 3, className: '三班', students: [ { studentID: 5, studentName: '曹七' }, { studentID: 6, studentName: '余八' } ] }, { classID: 4, className: '四班' } ]; }); </script></head><body ng-controller="my_controller"> <table> <tr ng-repeat="class in vm.classes"> <td>{{class.classID}}</td> <td>{{class.className}}</td> <td> <table> <tr ng-repeat="student in class.students"> <td>{{student.studentID}}</td> <td>{{student.studentName}}</td> </tr> </table> </td> </tr> </table> </body></html>
0 0
- angularjs遍历两次
- angularjs表单注册--两次密码验证
- angularjs的坑,执行两次控制器
- AngularJS验证两次密码是否相同
- angularjs之循环遍历
- angularjs的循环遍历
- AngularJS遍历数组
- angularjs之循环遍历
- 文件夹遍历和防止程序启动两次
- Angularjs中ngRepeat遍历出错
- angularjs对象扩展与遍历
- leetcode candy分糖果问题 两次遍历和一次遍历
- angularjs自定义指令检验两次输入的密码是否一致
- hdu 2196 Computer (树形dp+两次dfs遍历)
- Java 中如何对 Iterator<Text> values 实现两次遍历
- spark中mapPartitions双重循环或两次遍历(duplicate)
- BZOJ1509_NOI 2003_逃学的小孩 两次遍历 树形DP
- AngularJS教程 AngularJS从0到1——AngularJS数组遍历
- C# Timer定时器的用法(定时器的终止)
- 指定maven本地库的位置
- user exit-me51n change PR ITEM No.
- cobol学习之六数值的运算
- sgu104
- angularjs遍历两次
- 2014 ACM-ICPC Beijing Warm-up (北京赛区热身赛)
- my ipod touch4's plug-in and offline apps
- Delphi XE6 for Android 让手机震动
- POJ_3181_记忆化搜索、高精度优化
- 雷观(四):手机不可能取代电脑
- 数据库基本表的操作——创建表,索引和查询
- 织梦DEDECMS模板调用时间不显示的错误原因
- 第十二周项目三 用递归方法求解(求出两个数的最大公约数)