0x001
V2EX  ›  Node.js

node app.js

  •  
  •   0x001 · Jul 1, 2014 · 5127 views
    This topic created in 4380 days ago, the information mentioned may be changed or developed.
    这样运行app.js, 请问如何传参数进去?
    3 replies    2014-07-01 17:10:13 +08:00
    0x001
        1
    0x001  
    OP
       Jul 1, 2014
    USER_ID='123' node app.js
    ine181x
        2
    ine181x  
       Jul 1, 2014
    process.argv
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2663 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 10:39 · PVG 18:39 · LAX 03:39 · JFK 06:39
    ♥ Do have faith in what you're doing.