<col class="psap-msisdn-col"></col>
<col class="from-col"></col>
<col class="psap-name-col"></col>
<col class="rh-sip-uri-col"></col>
<col class="psap-message-col"></col>
<col class="dlg-time-col"></col>
<col></col>
有更好的方法吗?
答案 0 :(得分:3)
<% ["psap-msisdn-col", "from-col", ... etc].each do |klass| %>
<col class="<%=klass%>"></col>
<% end %>
<col></col>