thymeleaf

以html形式显示:

以下两种方式都可以

th:utext

[(${})]
<a target="_blank" href="item.html"
    th:title="${goods.goodsName}"
   th:utext="${goods.goodsName}"></a>
<a target="_blank" href="item.html"  th:title="${goods.goodsName}">[(${goods.goodsName})]</a>

onclick事件中使用thymeleaf

<a href="javascript:void(0);" th:onclick="pushUrl('categoryName',[[${category}]])">[[${category}]]</a>