细节更新
This commit is contained in:
1 parent
a3cad474ea
commit
977ce66110
13 files changed
+154
-35
No files matched your search
@@ -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')) {
|
||||
|
||||
Reference in new issue
Block a user