摘要: 1.定义 元组(Tuple)合并了不同类型的对象。 2.使用 let tom: [string, number]; tom[0] = 'Tom'; tom[1] = 25; tom[0].slice(1); tom[1].toFixed(2); 3.注意事项 当直接对元组类型的变量进行初始化或者赋值 阅读全文
posted @ 2023-08-22 18:48 李翠花xixi 阅读(34) 评论(0) 推荐(0)