我在 Angular 工作。我想知道它在接口和抽象类方面是否有类似java的类结构。
1 回答
1
由于 Angular 使用的是 Typescript,答案是肯定的:查看本手册: https ://www.typescriptlang.org/docs/handbook/classes.html
组件继承有特殊规则(模板和样式不会被继承),请查看:https ://scotch.io/tutorials/component-inheritance-in-angular-2
于 2019-02-27T06:50:21.683 回答