摘要: es5 中类的创建以及继承 es6 中类的创建以及继承 在es6的 constructor 中不去调用 super 的话是不能进行 this 的使用的,这里用 super(obj1) 是为了给所要继承的父类 animal 进行传参; 共有public 在 typeScript 中,类的属性和方法默认 阅读全文
posted @ 2019-07-22 17:22 mumengchun 阅读(170) 评论(0) 推荐(0) 编辑