2
多個值,我使用jQuery的模板來渲染頁面,在這裏我使用的模板組合遍歷並顯示一個頁面。傳遞和訪問jQuery的模板,模板組合
{{if simulateBomPageData.groupNames}}
{{each simulateBomPageData.groupNames}}
{{tmpl($value,simulateBomPageData.materialData.characterAttributesData.attributeMap[$value],$index) "#characters_group"}}
{{/each}}
{{/if}}
我的子模板看起來如下
<script id="characters_group" type="text/x-jQuery-tmpl">
{{=$index}}" {{=$value}}(Value from fro each loop)
the entry in the map
and the {{=$index}}
</script>
請讓我知道如何訪問和傳遞這些價值