1
我得到使用$从JSON文件阵列http.get看起来像这样: {USER_ID:{SCRIPT_ID,cron_format ...}越来越多维数值数组
{"1":{"1":"*\/3 * * * *","2":"*\/6 * * * *","3":"*\/3 * * * *","4":"* * * * *"},
"2":{"1":"*\/3 * * * *","2":"*\/2 * * * *","3":"*\/Al test","4":"* * * * *"},
"3":{"1":"*\/3 * * * *","2":"*\/6 * * * *","3":"*\/3 * * * *","4":"12 "}}
我尝试把所有分三路表中的值,但我无法弄清楚如何让所有的人: 最好的尝试只得到了SCRIPT_ID的和cron_format的:
<table class="table table-bordered table-hover">
<thead>
<td>user name</td>
<td>script id</td>
<td>cron format</td>
</thead>
<tbody ng-repeat="row in data">
<tr ng-repeat="(script_id, cron_format) in row">
<td>{{user_id}}</td>
<td>{{script_id}}</td>
<td>{{cron_format}}</td>
</tr>
</tbody>
</table>
试图做同样的数据和行,但它没有工作的原因不是我有行var ...请任何解决方案?
你能举一个例子,说明你的示例json数据的输出行是什么......这将帮助我们弄清楚你如何试图映射这些数据。 – JRulle 2015-02-09 20:56:55