thymeleaf的使用技巧

一、thymeleaf處理時間html <span th:text="${#dates.format(article.getArticleTime(), 'yyyy-MM-dd')}">2017-02-23</span> 注:article是從後臺model中傳過來的對象,getArticleTime()是獲取它的時間web 二、thymeleaf的@{}中引用${}svg 咱們能夠用來動態的傳遞
相關文章
相關標籤/搜索