联合类型(Union Types)表示取值可以为多种类型中的一种。 ... index.ts(2,1): error TS2322: Type 'boolean' is not assignable to type 'string | number'.
確定! 回上一頁