2
我有這樣一段代碼在我Thymeleaf模板,但它不能正常工作,因爲這是window.location.href上thymeleaf
deviceevent/@%7B/deviceevent/list/%7Bid%7D(id=$%7BdeviceEvent.id%7D)%7D
模板生成的位置
<tr th:each="deviceEvent : ${deviceEvents}" onclick="window.location.href = '@{/deviceevent/list/{id}(id=${deviceEvent.id})}'" >
非常感謝 – makson