V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
0x001
V2EX  ›  Node.js

node app.js

  •  
  •   0x001 · 2014-07-01 14:52:53 +08:00 · 3994 次点击
    这是一个创建于 3559 天前的主题,其中的信息可能已经有所发展或是发生改变。
    这样运行app.js, 请问如何传参数进去?
    3 条回复    2014-07-01 17:10:13 +08:00
    0x001
        1
    0x001  
    OP
       2014-07-01 15:06:29 +08:00
    USER_ID='123' node app.js
    ine181x
        2
    ine181x  
       2014-07-01 15:13:46 +08:00
    process.argv
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2727 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 12:37 · PVG 20:37 · LAX 05:37 · JFK 08:37
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.