Html Thymeleaf中的算术运算

Html Thymeleaf中的算术运算,html,spring,spring-mvc,thymeleaf,Html,Spring,Spring Mvc,Thymeleaf,我怎样用thymeleaf做一些算术运算。我试过很多方法。但无法获得输出。如果你知道,请让我知道 这是我的密码: /*Dummy Content */ <p class="quan-inc-dec"> <input type="hidden" name="productId" th:value="*{product.id}" class="productId"/> <input type="hidden" name="orderItemId" th

我怎样用thymeleaf做一些算术运算。我试过很多方法。但无法获得输出。如果你知道,请让我知道

这是我的密码:

/*Dummy Content */ 
<p class="quan-inc-dec">
    <input type="hidden" name="productId" th:value="*{product.id}" class="productId"/>
    <input type="hidden" name="orderItemId" th:value="*{id}" class="orderItemId"/>
    <input type="button" name="minus" class="minus" value="-" autocomplete="off"/>
    <input type="text" name="quantity" value="1" class="result" autocomplete="off" th:value="*{quantity}"/>
    <input type="button" name="plus" class="plus" autocomplete="off" value="+"/>
</p>
/*Dummy Content End*/
<span th:text="${${obj.baseRetailPrice}*${obj.aa}}"><!-- I need the Result Here --></span>
/*虚拟内容*/

/*虚拟内容端*/
像这样:

<div th:with="result=${obj.baseRetailPrice * obj.aa}">
  <span th:text="${result}"></span>
</div>


您也可以在没有div的情况下执行此操作。@user3344977,您可以解释一下如何执行吗?@Marvo您可以查看
th:block