我有类似数组
Array (
[data] => Array (
[0] => tratata
[1] => blabla
)
[data_key] => Array (
[0] => the first key
[1] => the second one
)
)
我试图以这种方式显示它:
{% for key, value in L10_DATA %}
<tr>
<th>
{{ value.data_key }}
</th>
<td>
{{ value.data }}
</td>
</tr>
{% endfor %}
但是它不起作用:c能帮我吗?
答案 0 :(得分:2)