Call constructor on TypeScript class without new

后端 未结 6 959
醉话见心
醉话见心 2020-12-13 13:50

In JavaScript, I can define a constructor function which can be called with or without new:

function MyCl         


        
6条回答
提交回复
热议问题