<table class="table">
<tr>
{% for item in summary.titles %}
<th>{{ item }}</th>
{% endfor %}
</tr>
<tr>
{% for title in summary.titles %}
<td> {{ summary.data[title] }}</td>
{% endfor %}
</tr>
</table>
是否有可能以类似的方式获取数据?
例外值:
无法解析余数:'[title]'来自 'summary.data [标题]'
var summary = {
data:{
title1: 1,
title2:2
},
titles: [title1, title2]
}