ndex eq pageIndex} ? 'current':''"
                    th:each="index : ${#numbers.sequence(totalPages - 4, totalPages - 1)}"
                    th:if="${totalPages - pageIndex le 3}">
                    <a th:href="@{/moments}+'/page/' + ${index}"
                       th:text="${index}">
                    </a>
                </span>
                <!-- 最后一页与当前页面之差大于3 且当前页面大于4 -->
                <span class="page-link" th:if="${(pageIndex gt 4) && (totalPages