let args = process.argv.splice(2)
let customEnginePath = ""
args.forEach((arg) => {
var [key, value] = arg.split('=')
if (key === 'customEnginePath') {
customEnginePath = value
}
})
let args = process.argv.splice(2)
let customEnginePath = ""
args.forEach((arg) => {
var [key, value] = arg.split('=')
if (key === 'customEnginePath') {
customEnginePath = value
}
})
本文标题:Node 参数获取
本文链接:https://www.haomeiwen.com/subject/zjtwlltx.html
网友评论