thymeleaf筆記

url的寫法 帶參數的寫法: 第一種: 參數是以?形式帶在後面html 直接帶指定參數 <a th:href="@{/showAllUser?page=0}" role="button">首頁</a> 參數是變量的寫法 <a th:href="@{/showAllUser(page=(${usersPage.number} le 0 ? 0 :(${usersPage.number}-1)))}"
相關文章
相關標籤/搜索