CircleMouse的博客在Thymeleaf中使用th:onclick传递参数时,如果你遇到了错误信息“Only variable expressions returning numbers or booleans are allowed in this context”,你可以通过以下方法来解决这个问题: 方法1:使用双括号...
小白集团的博客th:onclick="方法名([[${后台数据1}]],[[${后台数据2}]],.......)" th:onclick="toTeacherEvaluateForm([[${teaCourse.getCid()}]],[[${classes}]],[[${schedule.getRound()}]])" function toTeacherEvaluateForm...