优化:拆分test_page.html,把一部分document操作的代码提取出来,减少单个文件大小,且把logger.js和xiaoZhiConnect.js也提取出来

This commit is contained in:
JianYu Zheng
2025-08-11 17:44:01 +08:00
parent 1c19046442
commit c7392dcf5a
3 changed files with 35 additions and 5 deletions
+4 -1
View File
@@ -1,4 +1,7 @@
const logContainer = document.getElementById('logContainer');
import { getLogContainer } from '../document.js'
const logContainer = getLogContainer();
// 日志记录函数
export function log(message, type = 'info') {
// 将消息按换行符分割成多行
const lines = message.split('\n');