var _ = process.argv.splice(2); console.log('传入参数:',_); JSON.parse(t); //将string转成json格式 parseInt('1') //将string转成int