ction(...args) {
                    const later = () => {
                        clearTimeout(timeout);
                        func(...args);
                    };
                    clearTimeout(timeout);
                    timeout = setTimeout(later, wait);
                };
            }

            // 监听搜索输入
            searchInput.addEventListener("input", debounce(performSearch, 300));

            // 初始化
            fetchTags();
            performSearch();
        </script>