摘要: 首先,引入子进程模块 var process = require('child_process'); 执行shell命令 调用该模块暴露出来的方法exec process.exec('shutdown -h now',function (error, stdout, stderr) { if (er 阅读全文
posted @ 2022-01-20 16:32 徐小禹_web 阅读(704) 评论(0) 推荐(0) 编辑