0

jquery テンプレートでモジュラス演算子を使用しようとしていますが、構文エラーが発生します

Uncaught SyntaxError: Unexpected token { 

{{if Items.length > 0}}
    <div>
        <table class='table table-bordered' style='width:450px;'>
            <thead style='text-align:center;'>
            <td>
                <strong>Related Topics</strong>
            </td>
            </thead>
            {{each Items}}
             {{if ${$index} % 6===0}}
                <td>
                        <input type='hidden' name='subUniqueKey${DomainObjectUniqueKey}' value='${DomainObjectUniqueKey}' />
                        <input type='checkbox' name='chkTopics${DomainObjectUniqueKey}'/><label id='labRelTopicsDisplay${DomainObjectUniqueKey}'>${subject}</label>  
                </td>
             {{/if}}
        {{/each}}
      </table>
    </div>
{{/if}}

おそらくエラーがどこにあるのかについてのアドバイス

ありがとう

4

1 に答える 1