标题thymeleaf 传递多个参数
只要在引号之间添加两个 | | 就可以了
在 | | 之间写代码即可
<button class="layui-btn" th:onclick="|deletePerson(${person.getId()},${personStart.index})|">删除</button>
<script>
function deletePerson(id, startIndex) {
}
</script>
只要在引号之间添加两个 | | 就可以了
在 | | 之间写代码即可
<button class="layui-btn" th:onclick="|deletePerson(${person.getId()},${personStart.index})|">删除</button>
<script>
function deletePerson(id, startIndex) {
}
</script>