推荐写法,简单好看,可读性高,如果是多个参数用逗号(,)分隔
URL表达式:
<form id="listForm" th:action="@{/album/reductionItems(uid=${session.user.getUid()})}" method="post">
//传到地址 /album/reductionItems 携带参数是uid
URL表达式+拼接字符串:可读性不强
<a th:href="@{'/order.html?pageNum='+${pageInfo.prePage}}">上一页</a>