0x001
V2EX  ›  Node.js

node app.js

  •  
  •   0x001 · Jul 1, 2014 · 5139 views
    This topic created in 4384 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   ·   5780 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 03:03 · PVG 11:03 · LAX 20:03 · JFK 23:03
    ♥ Do have faith in what you're doing.