Arithmetic Operation in Thymeleaf

后端 未结 1 1100
滥情空心
滥情空心 2021-01-04 21:06

How can I do some arithmetic operation in thymeleaf. I have tested so many ways. But unable to get the output. If U know, Please let me know.

Here is my code:

<
相关标签:
1条回答
  • 2021-01-04 21:54

    Like this:

    <div th:with="result=${obj.baseRetailPrice * obj.aa}">
      <span th:text="${result}"></span>
    </div>
    
    0 讨论(0)
提交回复
热议问题