比较百里香中的两个变量:属性名称不能为null或为空

沙玛(Sharma):

当我在百里香中比较两个变量时,它将引发运行时异常
org.attoparser.ParseException: Attribute name cannot be null or empty

我正在与这句话作比较regularPrice != salePrice

<div th: if="${batch.regularPrice} &lt; ${batch.salePrice}">
     <del class="dis-price"><i class="fa fa-rupee"></i>
         <span th:text="${#numbers.formatDecimal(batch.regularPrice, 0, 'COMMA', 0, 'POINT')}"></span>
     </del>
</div>
Arvind Kumar Avinash:

我正在比较此语句RegularPrice!= salePrice。

更换

<div th: if="${batch.regularPrice} &lt; ${batch.salePrice}">

<div th:if="${batch.regularPrice != batch.salePrice}">

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章