文章列表nodejs常用功能脚手架体系On this page脚手架体系参数解析process.argvprocess.argv是一个数组,[0] 当前node 的绝对路径[1] 当前调用的脚本名称[n] 按顺序列出启动脚本所带的参数,通过空格来分隔多个参数console.log('当前传入的参数: ', process.argv)for (let eachArg of process.argv){ console.log(eachArg)}Commander.js官方文档