细节更新

This commit is contained in:
MasonLiu committed 2026-06-01 22:48:06 +08:00
1 parent a3cad474ea
commit 977ce66110
13 files changed
+154 -35

No files matched your search

+11
View File
@@ -283,6 +283,17 @@ try {
});
});
// 下载JSON文件
function downloadJson(filename) {
const url = `assets/json/${filename}`;
const link = document.createElement('a');
link.href = url;
link.download = filename;
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
}
// 点击其他地方关闭搜索结果
document.addEventListener('click', function(e) {
if (!e.target.closest('.search-container')) {