文章列表nodejs内置模块osOn this pageos简介使用案例获取计算机名称const os = require('os');// 获取计算机名称const computerName = os.hostname();console.log('计算机名称:', computerName);