【发布时间】:2017-02-06 09:27:57
【问题描述】:
在我的控制器中,我有这样的数据:
"type": [
{
"aMap": {"5.0": 0},
"bMap": {"10.0": 0},
"cMap": {"15.0": 0},
"dMap": {"20.0": 0},
"desc": "CG"
},
{
"aMap": {"5.0": 0},
"bMap": {"10.0": 0},
"cMap": {"15.0": 0},
"dMap": {"20.0": 0},
"desc": "CG"
}]
它包含具有多个映射的数组。我想使用 ng-repeat 读取我的 html 中的地图中的键和值。我该怎么做?
【问题讨论】:
标签: angularjs arrays json angularjs-ng-repeat ng-repeat