springboot themleaf 開發筆記

(二少)在南極發表於2017-01-05

<form id="form-query" th:action="@{/member-score/rule-save}" th:object="${memberScoreRuleVo}" method="post" class="form-horizontal">

<select id="actionId" name="actionId" class="form-control">
<option th:each="item:${memberScoreRuleVo.actions}" th:value="${item.id}" th:text="${item.name}" ></option>
</select>


href="" th:href="@{/member-score/rule-on(id=${rule.id})}" >增加</a>

 


<tr th:each="rule:${offRules}">
<td th:text="${rule.id}"></td>

 

  <dd th:text="${#numbers.formatDecimal(product.price, 1, 2)}">180</dd>
   <dt>進貨日期</dt>
   <dd th:text="${#dates.format(product.availableFrom, 'yyyy-MM-dd')}">2014-12-01</dd>

 

<div th:text="${html}">
  This is an &lt;em&gt;HTML&lt;/em&gt; text. &lt;b&gt;Enjoy yourself!&lt;/b&gt;
</div>
<div th:utext="${html}">
  This is an <em>HTML</em> text. <b>Enjoy yourself!</b>
</div>


/*<![CDATA[*/
/*]]>*/
th:value="*{#dates.format(giftsVo.endInboundTime, 'yyyy-MM-dd HH:mm:ss')}"

th:value="*{#dates.format(giftsVo.strInboundTime, 'yyyy-MM-dd HH:mm:ss')}"
script th:inline="javascript">
/*<![CDATA[*/
jQuery().ready(function(){
/*[[${pageHelper.documentReady}]]*/
});
/*]]>*/
</script>

相關文章