如果你正在使用 TypeScript,可以在回调函数的参数中指定 [key, value] 的类型。以下是一个示例: interface User { name: string; age: number; job: string; } let responseData = { user: { ..