1、process.argv简单了解一下(https://blog.csdn.net/zxj0904010228/article/details/83443585)
console.log(process.argv[0]) // 打印 D:\nodeJs\node.exe
console.log(process.argv[1]) // 打印 E:\Study_document\vue-resource\vue-dev\scripts\build.js
console.log(process.argv[2]) // 打印 web-runtime-cjs,web-server-renderer
2、
网友评论