cari

Rumah  >  Soal Jawab  >  teks badan

Perbandingan ternary gagal dalam templat thinkphp 5.1

<pilih nama="tra_num">
    <nilai pilihan="" {$num_tra=="%"?'selected':'="'}>Semua</option>
   list_{volist name id="arr_tra" empty="Tiada artikel"}
  <nilai pilihan="{$arr_tra.id}" { {$num_tra} == {$arr_tra.id} ?'selected':''}> $ arr_tra.id} & lt;/option & gt;
{/volist}
& lt;/select & gt

                                                                                              nilai pilihan="2" { (7 == 2 ?'selected':'')}> ;2</option>

     <nilai pilihan="4" { (7 == 4 ?'dipilih':'' )}>4</option>

                                        < (7 == 6 ?'dipilih': '')}>6</option>

       <nilai pilihan="7" { (7 == 7 ?'dipilih':'')}>7</ pilihan>                                                                                                   

凡人凡人1826 hari yang lalu1177

membalas semua(1)saya akan balas

  • 殘留の回憶

    殘留の回憶2019-12-05 18:53:07

    Bahasa Cina {, mungkin anda menukar tag templat

    balas
    0
  • Batalbalas