📜  typescript 声明“userLanguage” - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:21.041000             🧑  作者: Mango

代码示例1
interface Navigator {
  userLanguage?: string;
  browserLanguage?: string;
  languages: readonly string[];
  language: string;
}

const navigator: Navigator = window.navigator;