search

Home  >  Q&A  >  body text

node.js - 在路由中无法获得参数

return a 在路里调用显示为空,怎么回事啊 哪里写错了

高洛峰高洛峰2785 days ago366

reply all(1)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-04-17 16:19:03

    js is asynchronous. . . There is something wrong with what you wrote like this. . .


    This section will be returned before the file reading is completed. . . Then a has no value

    reply
    0
  • Cancelreply