Skip to content

Commit b59a6dc

Browse files
committed
fix: 修复和优化 JSON Tree Viewer 项目
- 修复重复的 DOMContentLoaded 事件监听器 - 统一代码缩进格式 - 修复树形结构伪元素定位问题 - 改进复制功能,添加 clipboard API 可用性检查 - 优化搜索性能,减少重复 DOM 查询 - 修复切换按钮垂直居中问题 - 替换复制按钮特殊字符为通用文本 - 更新 README.md 添加更新日志
1 parent 41ce5cd commit b59a6dc

3 files changed

Lines changed: 188 additions & 120 deletions

File tree

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ <h1>JSON 树状结构解析器</h1>
2525
<input type="url" id="urlInput" placeholder="输入 JSON 文件 URL">
2626
</div>
2727
<div class="input-panel active" id="panel-text">
28-
<textarea id="jsonInput" placeholder="粘贴或输入 JSON 内容">[{"v": "1.0.4"}]</textarea>
28+
<textarea id="jsonInput" placeholder="粘贴或输入 JSON 内容">{"version": "1.0.5"}</textarea>
2929
</div>
3030
<button onclick="handleImport()">导入并解析</button>
3131
<div class="loading" id="loading">解析 JSON 数据中...</div>

0 commit comments

Comments
 (0)