How to implement a dynamic require in nodejs

后端 未结 0 1369
面向向阳花
面向向阳花 2021-01-31 09:39

I have 3 files in the root folder and index.js

assume them as file1.js,file2.js,file3.js and the current file index.js

in each file , there a sample function

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