灰尘助手等于选择控制

时间:2016-01-05 17:03:29

标签: html dust.js dust-helpers

我有这个模板我需要选择合适的选项,如何将它与防尘帮助器进行比较? https://stackoverflow.com/a/19628029/880709对我不起作用

{#data.PRODUCT_TURNOVER_DATA}
<tr>
    <td><input name="ID_TYPE_TURN" value='{.ID_TYPE_TURN}'></td>
    <td>

                        <div class="form-group">
                            <select class="form-control" name="ID_TYPE_TURN">
                            {#data.SPR_TYPE_TURN_DATA}
                                <option value="{.ID_TYPE_TURN}" selected='?'>{.NAME_TYPE_TURN}</option>
                            {/data.SPR_TYPE_TURN_DATA}
                            </select>
                        </div>
    </td>
</tr>
{/data.PRODUCT_TURNOVER_DATA}

数据:

"data": {
      "PRODUCT_TURNOVER_DATA": [
        {
          "ID_PRODUCT_TURNOVER": 4,
          "DATE_TURN": "2015-12-29T21:00:00.000Z",
          "ID_TYPE_TURN": 2,

        }
      ],
     "SPR_TYPE_TURN_DATA": [
        {
          "ID_TYPE_TURN": 1,
          "NAME_TYPE_TURN": "Передано в составе УТАС",
          "ACC_OPT": 1
        },
        {
          "ID_TYPE_TURN": 2,
          "NAME_TYPE_TURN": "Получено от контрагента для ревизии",
          "ACC_OPT": -1
        }]

平等标准

PRODUCT_TURNOVER_DATA.ID_TYPE_TURN == SPR_TYPE_TURN_DATA.ID_TYPE_TURN 

1 个答案:

答案 0 :(得分:0)

您可以使用wswap: # @wswap .cfi_startproc # BB#0: roll $16, %edi movl %edi, %eax retq 帮助程序来比较这两个值。

{@eq}