视频11分53秒处,this.code=code;有什么用?
我这样写,运行起来也完全没有问题呀?
class Employee extends Person { constructor(name: string, code: string) { super(name); console.log(code); } } var e1=new Employee("suzic","1abc")
我这样写,运行起来也完全没有问题呀?
class Employee extends Person { constructor(name: string, code: string) { super(name); console.log(code); } } var e1=new Employee("suzic","1abc")
2017-06-13
举报