Thymeleaf 如何使用th:onclick给function传递参数
th:onclick="方法名([[${后台数据1}]],[[${后台数据2}]],.......)"th:onclick="toTeacherEvaluateForm([[${teaCourse.getCid()}]],[[${classes}]],[[${schedule.getRound()}]])"function toTeacherEvaluateForm(cid, classes,round) { console.log(cid) console.log(classes.
原创
2021-01-06 15:04:44 ·
3384 阅读 ·
0 评论