<select name="typeId">
<foreach name="typeInfo" item="v">
<if condition="$v[typeId] eq $article[typeId]">
<option value="{$v.typeId}" selected>{$v.name}</option>
<else/>
<option value="{$v.typeId}">{$v.name}</option>
</if>
</foreach>
</select>
ThinkPHP3.2中if判斷條件是兩個變量時,condition中的變量要用中括號形式,
