& ltselect th:field =“* { payment method }“th:remove =“all-but-first“& gt;
& lt選項th:each =“payment method:$ { payment methods }“
th:value =“$ { payment method }“th:text =“$ { payment method . description }“& gt;信用卡& lt/option & gt;
& lt選項& gt另壹種支付方式& lt/option & gt;
& lt選項& gt另壹種支付方式& lt/option & gt;
& lt/select & gt;
也可以通過以下方法實現:
& ltselect multiple =“multiple“class =“width-50 cosen-select“name =“knowledge pointidset“data-placeholder =“分類名稱:“》
& lt選項th:each =“category:$ { know point list }“th:value =“$ { category . id }“
th:selected =“$ { # strings . contains(instance . knowledge pointid set,category . id)}“
th:text =“$ { category . name }“& gt;性名稱:
& lt/select & gt;