【发布时间】:2020-07-18 01:38:29
【问题描述】:
我一直在尝试通过单击按钮传递包含产品详细信息的对象列表。但是我得到对象列表的“未捕获的语法错误:无效或意外的令牌”。
<button type="button" th:onclick="'javascript:addProductFields(' + ${status.index} + ', ' + ${status1.index} + ',' + ${dailySaleHistoryDto.productList} +')'" class="btn btn-info"> +</button>
我的猜测是传递参考“dailySaleHistoryDto.productList”的语法有问题。
【问题讨论】:
标签: javascript spring-boot thymeleaf