一、HTML取值
<span th:text=”${param.cid}”></san>
或者
<span>[[${param.cid}]]</span>
二、 JS取值
<script>
let cid=[[${param.cid}]];
console.log(cid);
</script>
<span th:text=”${param.cid}”></san>
或者
<span>[[${param.cid}]]</span>
<script>
let cid=[[${param.cid}]];
console.log(cid);
</script>
评论0