TypeError: class constructors must be invoked with 'new'

后端 未结 0 1772
生来不讨喜
生来不讨喜 2020-12-23 07:31

I try to write a mix-in function for JavaScript. The easy part is to copy the prototype. The complicate part is the constructor call.

For example I have the following

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