search

Home  >  Q&A  >  body text

node.js - NodeJs定义全局变量以及并发问题

天蓬老师天蓬老师2875 days ago347

reply all(3)I'll reply

  • PHPz

    PHPz2017-04-17 16:16:16

    nodejs is single-process and single-threaded

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-17 16:16:16

    To define global variables in Node, use global http://www.runoob.com/nodejs/...

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-17 16:16:16

    It is strongly not recommended to do this. It is okay for beginners to understand, but it is ok after trying it. Please abandon this idea as soon as possible and use another solution

    reply
    0
  • Cancelreply