Ternary comparison fails in thinkphp 5.1 template
凡人
凡人 2019-12-05 17:07:52
0
1
1174

<select name="tra_num">
        <option value="" {$num_tra=="%"?'selected':''}>全部</option>
        {volist name="list_tra" id="arr_tra" empty="没有文章"}
        <option value="{$arr_tra.id}" { {$num_tra} == {$arr_tra.id} ?'selected':''}>{$arr_tra.id}</option>
    

凡人
凡人

reply all(1)
殘留の回憶

Chinese {, you should have changed the template tag

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template