nodejs process argv

console.log(process.argv); const [nodePath, scriptPath, name] = process.argv; console.log(name); /** [ '/usr/local/bin/node', '/Users/ztc/workspace/lastNodejs/argv.js', 'adley' ] adley */
相關文章
相關標籤/搜索