angularjs
来源:互联网 发布:网络黄金egd今日价格 编辑:程序博客网 时间:2024/06/12 22:41
ng_repeat:循环输出多个标题
<body ng-app="myApp" ng-controller="myCtrl">
<h1 ng-repeat="x in records">{{x}}</h1>
<script>
var app = angular.module("myApp", []);
app.controller("myCtrl", function($scope) {
$scope.records = [
"菜鸟教程1",
"菜鸟教程2",
"菜鸟教程3",
"菜鸟教程4",
]
});
</script>
</body>
阅读全文
0 0
- AngularJS
- angularjs
- Angularjs
- angularJS
- AngularJS
- AngularJS
- AngularJS
- AngularJs
- AngularJS
- AngularJs
- AngularJs
- AngularJS
- AngularJS
- AngularJS
- AngularJS
- AngularJS
- angularjs
- AngularJS
- Node.js学习之Telnet
- ZooKeeper伸缩性
- MyBatis在insert插入操作时返回主键ID的配置
- 线程和进程的区别
- Tomcat开机自启动
- angularjs
- 大连血液中心见习报告
- 关于ArcGIS API for JavaScript中basemap的总结介绍(一)
- 快速排序
- Spring Data JPA
- TortoiseGit disconnected no supported authentication
- shell几点细节问题总结
- 关于Calligraphy的使用简单集成示例
- 大数斐波那契问题