thymeleaf如何取url中请求参数值

一、HTML取值

<span th:text=”${param.cid}”></san>

或者

<span>[[${param.cid}]]</span>

二、 JS取值

<script>
let cid=[[${param.cid}]];
console.log(cid);
</script>

0

评论0

请先
显示验证码
没有账号?注册  忘记密码?