browsingData.DataTypeSet
browsingData.DataTypeSet
类型描述了一组数据类型。
它包含多个布尔属性。每个属性的名称是某种特定浏览数据的名称,例如“downloads”、“history”等。所有属性都是可选的。
此类型用于:
- 在
browsingData.remove()
中描述要删除的数据类型 - 在
browsingData.settings()
中描述当前在浏览器的“清除历史记录”功能中选择的数据类型
类型
此类型的值是对象。它们包含以下属性:
cache
可选-
boolean
。浏览器的缓存。 -
boolean
。浏览过程中获得的 cookie。 downloads
可选-
boolean
。用户的下载历史记录。 fileSystems
可选-
boolean
。网站的文件系统。 formData
可选-
boolean
。保存的表单数据,用于自动填充。 history
可选-
boolean
。用户的浏览历史记录。 indexedDB
可选-
boolean
。IndexedDB 数据。 localStorage
可选-
boolean
。本地存储数据。 passwords
可选-
boolean
。保存的密码,用于自动填充。 pluginData
可选-
boolean
。与插件关联的存储数据。 serverBoundCertificates
可选-
boolean
。存储的服务器绑定证书。 serviceWorkers
可选-
boolean
。service worker 缓存的数据。
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | ||||||
---|---|---|---|---|---|---|---|
cache | |||||||
cookies | |||||||
downloads | |||||||
fileSystems | |||||||
formData | |||||||
history | |||||||
indexedDB | |||||||
localStorage | |||||||
passwords | |||||||
pluginData | |||||||
serverBoundCertificates | |||||||
serviceWorkers |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- Has more compatibility info.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
备注:
此 API 基于 Chromium 的 chrome.browsingData
API。