我有这个模板我需要选择正确的选择选项,如何将它与除尘助手进行比较?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