ts-简单知识点汇总
1.基本类型:boolean、number、string、数组、元组、枚举、any、void、null、undefined、never、objectlet numberOrString: number | string = 123let union: number | string | boolean | string[]let arrOfNumber: number[] = [1, 2, 3]let arrOfNumber1: Array<number> = [1, 2, 3]le
原创
2021-06-18 11:21:51 ·
260 阅读 ·
0 评论