基本功
Vue2系列
Vue3系列
React
Appearance
对于数组类型,TypeScript 提供了两种方式进行定义
var arr: number[] = [1, 2, 3, 4]
var arr: Array<number> = [1, 2, 3, 4]