(containerId: string, lines: string[])
| 24 | * 把 module.prop 的内容逐行显示在指定区域 |
| 25 | */ |
| 26 | export function renderVersionInfo(containerId: string, lines: string[]): void { |
| 27 | const el = document.getElementById(containerId); |
| 28 | if (!el) return; |
| 29 | |
| 30 | // 用 <br> 把每行文字拼起来,实现换行显示 |
| 31 | el.innerHTML = lines.join('<br>'); |
| 32 | } |
| 33 | |
| 34 | /** |
| 35 | * 在页面上显示运行日志 |