TS 定义一个最简单的字符串数组类型

index.ts

const foo: string[] = ["foo", "bar"]
原文地址:https://www.cnblogs.com/aisowe/p/15246050.html