1
我必須使用神社模板在燒瓶項目下面的循環:神社模板子循環優化
<select style="width: 125px;" id="ddlQuarters" name="ddlQuarters">
{% for e in element_values if e.DataKey == 'Quarter' %}
{% for v in e.DataElementValues | reverse %}
<option value="{{ v.DataElementValueId }}">{{ v.Value }}</option>
{% endfor %}
{% endfor %}
</select>
有沒有辦法來優化環路神社所以我並不需要做一個子循環獲取我想要的數據元素?或者,另一個問題是,在一個單一的循環中做到這一點與速度有什麼不同?