symbol 简介 每一个 Symbol 值都是独一无二的,与其他任何值都不相等。 Symbol 值通过 Symbol()函数生成。TypeScript 中,Symbol 的类型使用 symbol 表示。 let x: symbol = Symbol(); let y: symbol =