2016년 2월 17일 수요일

[nodejs] 실행 인자 받기 argument


var first_arg = process.argv[2];

2번째부터가 첫번째 인자임.

node source.js first_arg

이런 식이니까.


댓글 없음:

댓글 쓰기