How to check which module called the constructor of a class in Javascript at runtime?

后端 未结 0 1088
太阳男子
太阳男子 2021-02-13 21:54

I have a class:

// MyClass.ts

export class MyClass {

  constructor(){
    // can I get the name of the module or function which called the constructor here ??
          


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