Angularjs遍历HashMap

原创
2016/12/12 17:15
阅读数 6.2K

angularjs支持通过repeat方法遍历Hashmap:

$scope.map = {key:"value"};
<h1 ng-repeat="(key,value) in map">{{key}} -> {{value}}</h1>

 

展开阅读全文
加载中

作者的其它热门文章

打赏
0
0 收藏
分享
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部