对于不可信的 JSON 结果,为什么 unknown 比 any 更安全?

来自 基础类型
TypeScript 6 入门 1分钟

对于不可信的 JSON 结果,为什么 unknown 比 any 更安全?

报告错误