TypeError: class constructors must be invoked with 'new'

后端 未结 0 890
半阙折子戏
半阙折子戏 2020-12-23 07:36

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

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