Require/import file dynamically and use it's exported function

前端 未结 0 1770
小鲜肉
小鲜肉 2020-12-06 03:40

I would like to call a function "Test" from each javascript files I have in a directory. I want to do this dynamically, and that\'s why I\'m not using requir

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