跳转到主要内容

SharedDictionaryInfo 对象

  • match string - 字典的匹配路径模式,在 'use-as-dictionary' 响应头中的 match 选项中声明。
  • matchDestinations string[] - 字典的匹配目标数组,在 'use-as-dictionary' 响应头中的 match-dest 选项中声明。
  • id string - 字典的 ID,在 'use-as-dictionary' 响应头中的 id 选项中声明。
  • dictionaryUrl string - 字典的 URL。
  • lastFetchTime Date - 字典从网络层接收的时间。
  • responseTime Date - 字典从服务器接收的时间。对于缓存的响应,此时间可能“很久”以前。
  • expirationDuration number - 字典的过期时间,以秒为单位,在 'use-as-dictionary' 响应头中的 expires 选项中声明。
  • lastUsedTime Date - 字典最后使用的时间。
  • size number - 存储在此共享字典信息对象中的字节数,位于 Chromium 的内部存储中(通常是 Sqlite)。
  • hash string - 字典二进制文件的 sha256 哈希值。