AngularJs的forEach循环
来源:互联网 发布:java保留小数点后一位 编辑:程序博客网 时间:2024/05/22 14:16
<!DOCTYPE html><html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8"><!-- 引入AngularJS库 --><scriptsrc="http://cdn.static.runoob.com/libs/angular.js/1.4.6/angular.min.js"></script></head><body><table ng-app="myTable" ng-controller="empController"><tr><th>雇员编号</th><th>雇员名称</th><th>薪水</th></tr><tr ng-repeat="i in emp"><td>{{i.eno}}</td><td>{{i.ename}}</td><td>{{i.sal}}</td></tr></table></body><script type="text/javascript">//获取app对象modulevar app = angular.module('myTable', []);//controller层会调用service层 控制层参数斥是提供服务的参数//$scope作用域 $location路径服务 $http发送ajax app.controller('empController', function($scope){$scope.emp=[{eno:1,ename:'zs',sal:1000},{eno:1,ename:'ls',sal:2000}];});</script></html>
阅读全文
0 0
- AngularJs的forEach循环
- AngularJs的forEach循环
- foreach循环的循环计数器
- java的foreach循环
- Java 的foreach循环
- ForEach循环的使用
- angularjs foreach
- angularjs的循环遍历
- el foreach 的嵌套循环
- jstl的foreach循环整数
- foreach循环&字符的用处
- 细说PHP的foreach循环
- 对于foreach循环的使用
- ForEach循环的var属性
- Foreach循环语句的使用
- 增强的for循环--foreach循环
- for循环和foreach循环的区别?
- foreach循环
- 洛谷 P2422 良好的感觉
- struts2学习之---配置struts2的异常处理
- Linux 环境变量
- 原地重复值判断
- dozer-javabean映射工具详解
- AngularJs的forEach循环
- ELK(ElasticSearch, Logstash, Kibana)搭建实时日志分析平台
- vector<int>::iterator it
- Java编码相关问题
- 4张图让你了解:云管理平台系统如何进行资源管理的?
- 算法竞赛入门经典 文件输入输出 重定向和fopen
- 【ML--01】第一课 机器学习概述
- pclint 常用屏蔽错误方法,已实测
- 牛人阿里面试总结