1 Star 0 Fork 0

袁箫剑/学习

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
preload.js 355 Bytes
一键复制 编辑 原始数据 按行查看 历史
yuanxiaojian 提交于 2023-04-08 07:20 . third commit
window.addEventListener('DOMContentLoaded', () => {
const replaceText = (selector, text) => {
const element = document.getElementById(selector)
if (element) element.innerText = text
}
for (const dependency of ['chrome', 'node', 'electron']) {
replaceText(`${dependency}-version`, process.versions[dependency])
}
})
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/yuanxiaojianisman/study.git
git@gitee.com:yuanxiaojianisman/study.git
yuanxiaojianisman
study
学习
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385