Why is it bad to use require inside functions in javascript?

前端 未结 0 1394
被撕碎了的回忆
被撕碎了的回忆 2020-11-29 12:45

I came out of a code review the other day in which it was recommended that I remove my require statements from the constructor and put them at the top of the file.

So

相关标签:
回答
  • 消灭零回复
提交回复
热议问题