0
任何想法爲什麼這不起作用?它使我在{% if tab.title==foc %}
django模板適用於
{% for tab in menu %}
{% for foc in focus %}
<li>{{ tab.title }}</li>
{% if tab.title==foc %}
{% endif %}
{% endfor %}
{% endfor %}
沒有給出什麼樣的錯誤?這可能是foc或tab變量的問題嗎? –
無法解析餘數:'tab.title == foc'中的'== foc' – titus