如何增加模板中變量的值.. ??Django加法
{% for s in list%}
{% for subject in s%}
{% for sub in subject %}
<div id="{{ sub| getid:i }}"></div>
# here i want to increment the value of i
{% endfor %}
{% endfor %}
{% endfor %}
http://mywiki.wooledge.org/XyProblem – 2010-11-15 17:00:40
如果您知道如何增加模板中某個變量的值,那麼請讓我知道.. !! – 2010-11-15 17:11:32