TypeScript 中的泛型约束
摘要:
```TypeScript private games:BaseGame[]=[]; public getGame(index:number=0):T{ return this.games[index]; } ``` 阅读全文
posted @ 2020-05-19 15:27 kingBook 阅读(745) 评论(0) 推荐(0) 编辑
2020年5月19日 #
posted @ 2020-05-19 15:27 kingBook 阅读(745) 评论(0) 推荐(0) 编辑