📜  typescript 初始化字符串数组 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:17.356000             🧑  作者: Mango

代码示例1
let arr1: boolean[] = [];
let arr2: boolean[] = new Array();
let arr3: boolean[] = Array();

let arr4: Array = [];
let arr5: Array = new Array();
let arr6: Array = Array();

let arr7 = [] as boolean[];
let arr8 = new Array() as Array;
let arr9 = Array() as boolean[];

let arr10 =  [];
let arr11 = > new Array();
let arr12 =  Array();

let arr13 = new Array();
let arr14 = Array();