阅读背景:

ES6动态导入和类的实例化

来源:互联网 

I'm trying to figure out how to perform dynamic import of classes in ES6 one the server side (node.js with Babel). I would like to have some functionalities similar to what reflection offers in Java. The idea is to import all the classes in a specific folder and instanciate them dynamically.I'm trying to figure out how to perform dynamic




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: