                <button onclick="changePage(${totalPages - 1})" ${
                    currentPage >= totalPages - 1 ? "disabled" : ""
                }>末页</button>
            `;
            }

            // 切换页面
            window.changePage = function (newPage) {
                currentPage = newPage;
                performSearch();
            };

            // 防抖函数
            function debounce(func, wait) {
                let timeout;
                return function executedFun