标签: javascript angular typescript constructor typescript2.0
打字稿中是否允许使用双构造函数?
export class Userdetails { private username: string = null; constructor (details: user) { this.username = details.username; } constructor () { } myOtherFunc(){} }